2 layout: "layouts/base.liquid"
8 <div style="margin-block:2rem;">
10 <div class="post-list">
11 {% if collections.posts and collections.posts.size > 0 %}
12 {% for post in collections.posts reversed %}
14 <h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2>
16 {% if post.data.featuredImage %}
17 <img src={{ post.data.featuredImage }} alt={{ post.data.featuredImageAlt }}>
20 <div class="date-and-tags">
21 {% if post.data.date %}
22 <p class="date">{{ post.date | date: "%B %d, %Y" }}</p>
26 {% assign filteredTags = post.data.tags | where_exp: "tag", "tag != 'posts'" %}
27 {% if filteredTags.size > 0 %}
31 {% for tag in filteredTags %}
39 <p>{{ post.data.description | default: "" }}</p>
43 <p>No posts yet...</p>