Overview
site.tags.*tag_name*
gives us an array of posts which have that tag:
...
<ul>
{% for post in site.tags.dogs %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
...
List all the posts in a particular tag
site.tags.*tag_name*
gives us an array of posts which have that tag:
...
<ul>
{% for post in site.tags.dogs %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
...
Need more? Checkout the directory for all of our tutorials
Explore moreJoin thousands of developers building sites on CloudCannon today
Get started free