- Published on
Escaping Liquid Template Tags in Octopress
- Authors

- Name
- Daisuke Kobayashi
- https://twitter.com
When I ran rake generate in Octopress, I got the following error.
$ rake generate
## Generating Site with Jekyll
identical source/stylesheets/screen.css
Configuration from /home/daisuke/Projects/blog/octopress/_config.yml
Building site: source -> public
Liquid Exception: undefined method `sort!' for nil:NilClass in atom.xml
/home/daisuke/Projects/blog/octopress/plugins/category_generator.rb:156:in `category_links'
....
Build Failed
The cause was that I had embedded Liquid source used by the Octopress templates directly inside an article. When you want to display Liquid template code, you need to wrap that part with the raw and endraw tags.