{% for post in page.posts %} {{ post.title }} {% for tag in post.tags %} {{ tag }}, {% endfor %} {% endfor %} {% assign catforthispage = page.category %} Posts in category "{{ catforthispage }}": {% for post in site.posts %} {% if post.categories contains catforthispage %} {{ post.title }} {% endif %} {% endfor %}