1. Home
  2. Liquid
  3. Get tags
#liquid#tags

A simple script to get all tags from the front matter of a post/page.

{% if page.tags.size > 0 %}
    {% for tag in page.tags %}<span>#{{ tag }}</span>{% endfor %}
{% endif %}
copy
Full Liquid cheatsheet
Sitemap Git repository