Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore a specific tag in Jekyll

I am building a site using Jekyll and I have something that looks like {{ }} (a liquid tag) in my code. I want this to end up in the output html after Jekyll finishes generating the site, but Jekyll interprets it like any other tag. Is there a way to make Jekyll ignore just this specific instance of this tag?

like image 622
tnbeatty Avatar asked Apr 27 '13 20:04

tnbeatty


1 Answers

Use the {% raw %} tag:

{% raw %}
  {{ ... }}
{% endraw %}

This snippet will produce {{ ... }}.

like image 101
agarie Avatar answered Sep 23 '22 00:09

agarie