Jekyll plugin not working

江枫思渺然 提交于 2019-12-23 13:31:14

问题


I have developed a simple Jekyll plugin, to generate the categories pages. IT works fine on my local system but does not work on github site.

Here is the source of the plugin:

https://github.com/madhur/madhur.github.com/blob/master/_plugins/site_process.rb

It should generate a page such as this:

http://www.madhur.co.in/categories/Security.html

However its not generated. Any ideas?


回答1:


GitHub doesn't allow Jekyll plugins, turns out we don't want you running arbitrary code on our servers :)




回答2:


I think this answer from Andión is better.

You can just upload the contents of the _site folder. That way you will simply push the static site. A simple way of doing that would be moving your .git/ folder to the _site folder, committing and pushing those changes. After that you will generate your site as usual and then push the changes to github from the _site folder. – Andión



来源:https://stackoverflow.com/questions/8646744/jekyll-plugin-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!