jekyll plugin not work on github

前端 未结 2 1865
失恋的感觉
失恋的感觉 2021-01-19 03:21

I want to change the order of pages in navitation bar by using jekyll-plugins / weighted_pages.rb from here.

This plugin work very well on my localh

相关标签:
2条回答
  • 2021-01-19 03:47

    Currently, Github pages does not support some custom plugins.

    If you want to make Jekyll site run as if it were local, such as let the custom plugins work properly, here is a way really convenient to build and deploy the Jekyll site to Github Pages.

    jekyll-deploy-action -

    0 讨论(0)
  • 2021-01-19 03:52

    Github pages does not support plugins. From jekyll's documentation:

    GitHub Pages is powered by Jekyll, however all Pages sites are generated using the --safe option to disable custom plugins for security reasons. Unfortunately, this means your plugins won’t work if you’re deploying to GitHub Pages.

    The same documentation page also gives you a workaround:

    You can still use GitHub Pages to publish your site, but you’ll need to convert the site locally and push the generated static files to your GitHub repository instead of the Jekyll source files.

    0 讨论(0)
提交回复
热议问题