I'm creating a bird's eye view tutorial for Jekyll, to be hosted on Github pages (on my blog that runs on Jekyll). So, I want to put some code there. If I put the following:
{% for post in site.posts %}
{% if post.categories contains '<categoryname>' %}
<h2>
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
{% endif %}
{% endfor %}
(all lines after tabspaces), it doesn't render as code, rather, it executes. How do I stop it from executing and render it as code?
Code snippet highlighting
section on jekyllrb.com/docs/templates and stackoverflow.com/questions/6761990/… – Nick R Feb 26 at 14:39