我正在为Jekyll创建一个俯瞰教程,该教程将托管在Github页面上(运行于Jekyll的博客)。因此,我想在其中添加一些代码。如果我加入以下内容:
{% for post in site.posts %}
{% if post.categories contains '<categoryname>' %}
<h2>
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
{% endif %}
{% endfor %}
在tabspaces后的所有行中,它不会呈现为代码,而是执行。我如何阻止它执行并将其呈现为代码?
Code snippet highlighting
部分。 - Nick R