Created
October 6, 2014 19:44
-
-
Save muya/8785e948688a49d83b14 to your computer and use it in GitHub Desktop.
Escaping Liquid Template Tags in Jekyll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% highlight html %} | |
{% raw %}{% if post.excerpt %}{% endraw %} | |
{% raw %}{{ post.excerpt }}{% endraw %} | |
{% raw %}{% else %}{% endraw %} | |
{% raw %}{{ post.content | truncatewords:30 }}{% endraw %} | |
{% raw %}{% endif %}{% endraw %} | |
{% endhighlight %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment