Tuan-Anh Tran

Embedding Liquid code snippet with jekyll

Posted on August 3, 2014  •  1 minutes  • 77 words

If you want to share some Liquid code snippet or say some Django code, jekyll would try to process it as it looks like valid Liquid template and throw some weird errors.

The solution is to use raw tag. Again, I cannot use raw tag nested inside raw tag. Though, you would probably never have to do it, unless writing a blog post about something like this.

{% raw %}

{% include analytics.html %}

{% endraw %}

Follow me

Here's where I hang out in social media