包括整个帖子,不仅包括摘要。杰奇

问题描述 投票:0回答:1

我有一个非常noob的问题。我想创建一个页面,其中将显示某些类别的所有帖子。我明白,我应该写一些{%include%}标签,但我无法理解。我有:

{% for post in site.posts %}

<!-- check if post comes from one of page categories-->
  {% assign PostAndPageCategories= page.categories | concat: post.categories %}
  {% capture all_cat %}{{ PostAndPageCategories | join: "," }}{% endcapture %}
  {% capture unique_cat %}{{ PostAndPageCategories |uniq | join: "," }}{% endcapture %}

  {% if all_cat != unique_cat %} 
  <!-- END check if post comes from one of page categories-->
 {% include archive-single.html %}
  {% endif %}

{% endfor %} 

显然,这段代码显示了带有teasers的帖子,但我需要显示整个帖子。

我该怎么改变线{% include archive-single.html %}

jekyll
1个回答
0
投票

我发现{{post.content}}而不是{% include archive-single.html %}对我来说很好。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.