1. Home
  2. Liquid
  3. Get tags

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

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