Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jekyll plugin not working on local machine

Tags:

plugins

jekyll

I have developed a simple filter for jekyll liquid module, and put the code in _plugins directory. but when I run jekyll the plugin doesn't work.

here is the directory that I run jekyll: https://github.com/alishir/alishir.github.io/tree/dev

here is the plugin code, it return simple string just for test: https://github.com/alishir/alishir.github.io/blob/dev/_plugins/PersianDate.rb

like image 381
Ali Shirvani Avatar asked Dec 13 '25 05:12

Ali Shirvani


1 Answers

Finally I found source of the problem, jeykll should run in non-safe mode in order to process plugins, but my _config.yml contains following line that prevent jekyll to process plugins.

   safe: true
like image 173
Ali Shirvani Avatar answered Dec 16 '25 21:12

Ali Shirvani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!