开发者

Jekyll plugins not recognized

开发者 https://www.devze.com 2023-01-27 00:19 出处:网络
I\'m trying to reproduce the Jekyll plugin example from https://github.com/mojombo/jekyll/wiki/Plugins to render the *render_time* tag, but I get this error:

I'm trying to reproduce the Jekyll plugin example from https://github.com/mojombo/jekyll/wiki/Plugins to render the *render_time* tag, but I get this error:

/Library/Ruby/Gems/1.8/gems/liquid-2.0.0/lib/liquid/block.rb:58:in `unknown_tag': Unknown tag 'render_time' (Liquid::SyntaxError)
from /Library/Ruby/Gems/1.8/gems/liquid-2.0.0/lib/liquid/block.rb:28:in `parse'
from /Library/Ruby/Gems/1.8/gems/liquid-2.0.0/lib/liquid/document.rb:5:in `initialize'
from /Library/Ruby/Gems/1.8/gems/liquid-2.0.0/lib/liquid/template.rb:58:in `new'
from /Library/Ruby/Gems/1.8/gems/liquid-2.0.0/lib/liquid/template.rb:58:in `parse'
from /Library/Ruby/Gems/1.8/gems/liquid-2.0.0/lib/liquid/template.rb:46:in `parse'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.5.7/bin/../lib/jekyll/convertible.rb:72:in `do_layout'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.5.7/bin/../lib/jekyll/page.rb:79:in `render'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.5.7/bin/../lib/jekyll/site.rb:158:in `render'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.5.7/bin/../lib/jekyll/site.rb:154:in `each'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.5.7/bin/../lib/jekyll/site.rb:154:in `render'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.5.7/bin/../lib/jekyll/site.rb:99:in `process'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.开发者_如何学运维5.7/bin/jekyll:129
from /usr/bin/jekyll:19:in `load'
from /usr/bin/jekyll:19

I've got my plugin in *./_plugins/homepage.rb* and the _config.yml contains the standard rules:

source:      .
destination: ./_site
plugins:     ./_plugins

Anyone with the same issue?


Ok, problem solved.

Issue was with jekyll version, using jekyll-0.5.7 on my test.

Working well with jekyll-0.7.0

0

精彩评论

暂无评论...
验证码 换一张
取 消