layout: blog
<h2>Category: {{ page.category }}</h2>
<ul class=“post-list”>
{% for post in site.categories[page.category] %} <li> <h3><a href="{{ post.url }}">{{ post.title}}</a></h3> <p>{{ post.date | date: "%b %-d, %Y" }}</p> {%- if post.image -%} <img src="/assets/images/{{ post.image }}" alt="Post Image" class="post__image"> {%- endif -%} {%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%} <a href="{{ post.url }}" class="button index-card__button">Read more</a> </li> {% endfor %}
</ul>