Onato
Onato

Reputation: 10221

Jekyll post.content with template

I have posts that use a template. I want to display them all on one page like so...

{% for post in site.categories.slides %}
    {{ post.content }}
{% endfor %}

This only displays the content of the posts but not rendered within their templates. How do I get the full content of the post?

Upvotes: 2

Views: 1686

Answers (1)

Onato
Onato

Reputation: 10221

The way to achieve this is to use includes instead of templates...

{% for post in site.categories.slides %}
  {% include slide.html %}
{% endfor %}

Upvotes: 1

Related Questions