Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jekyll plugin not working

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?

like image 479
Madhur Ahuja Avatar asked Dec 12 '22 06:12

Madhur Ahuja


2 Answers

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

like image 185
Ana Betts Avatar answered Jan 12 '23 21:01

Ana Betts


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

like image 31
Mithril Avatar answered Jan 12 '23 19:01

Mithril