Jekyll插件无法识别

时间:2010-11-24 19:18:44

标签: ruby jekyll jekyll-extensions

我正在尝试从https://github.com/mojombo/jekyll/wiki/Plugins重现Jekyll插件示例以呈现* render_time *标记,但是我收到此错误:

/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

我在* ./ _ plugins / homepage.rb *中插入了我的插件,而_config.yml包含标准规则:

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

有同样问题的人吗?

1 个答案:

答案 0 :(得分:0)

好的,问题解决了。

问题出现在jekyll版本上,在我的测试中使用 jekyll-0.5.7

jekyll-0.7.0

配合使用