Listing Posts with Specific Tags

less than 1 minute read

SOURCE


<ul>
{% for post in posts %}
  {% if post.tags contains 'gtd' %}
  <li>
    <a href="{{ post.url }}">{{ post.title }}</a>
    <span class="date">{{ post.date | date: "%B %-d, %Y"  }}</span>
  </li>
  {% endif %}
{% endfor %}
</ul>