Liquid Templates and Django Templates
-
Comments:
- here.
Note to self: when I get the error:
/Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/convertible.rb:81:in `do_layout': undefined method `name' for #<Jekyll::Post:0x10f842e88> (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/post.rb:189:in `render'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:193:in `render'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:192:in `each'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:192:in `render'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/../lib/jekyll/site.rb:40:in `_draft_process'
from /Users/matt/Dropbox/Blog/_plugins/drafts.rb:15:in `process'
from /Library/Ruby/Gems/1.8/gems/jekyll-0.11.2/bin/jekyll:250
from /usr/local/bin/jekyll:19:in `load'
from /usr/local/bin/jekyll:19
It’s probably because I have used django template tags in the {% (end)highlight %}
blocks, and omitted the {% (end)raw %}
stuff.