{% assign cat_default = page.url | split: '/' | last %} {% assign category = include.category | default: cat_default %}

Category: {{ category | capitalize }}

{% assign category_posts = site.posts | where: 'category', category %} {% include posts.html posts=category_posts %}