2

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

4

1 回答 1

5

最后我找到了问题的根源,jeykll 应该在非安全模式下运行才能处理插件,但是我的 _config.yml 包含以下行,阻止 jekyll 处理插件。

   safe: true
于 2013-06-08T08:35:58.190 回答