2017-12-19 1 views
0

나는 아주 멍청한 질문이있다. 나는 어떤 카테고리에서 모든 게시물을 발표 할 페이지를 만들고 싶다. 나는 몇몇 {% 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 %} 

물론,이 코드는 나에게 맛보기로 게시물을 표시하지만 전체 게시물을 표시해야합니다.

라인 {% include archive-single.html %}은 어떻게 변경해야합니까?

답변

0

{% include archive-single.html %} 대신에 {{post.content}}이 잘 작동합니다.

관련 문제