我正在循環瀏覽兩個產品 - 在帖子視圖頁面上,我在第二個帖子(在該示例中是一個相關的配方)中拉出,它在第一個產品頁面上解析得很好 - 第二個產品頁面{{ post.content }}
不會解析。我可以用{{ post.content | markdownify }}
來破解它 - 但我想知道它爲什麼破壞。下面是相關的代碼:Jekyll Loop在第二次迭代時突破
{% for post in site.categories.recipe %}
{% if post.products contains page.title and post.featured %}
<div class="row">
<div class="four columns">
<h4>{{ post.title }}</h4>
<ul>
<li>Serves {{ post.serves }}</li>
<li>Prep: {{ post.time }}</li>
<li><a href=" ">Share</a></li>
</ul>
{{ post.content }}
...
<!-- All tags are closed, the rest just isn't relevant -->
{% endif %}
{% endfor %}