wok

Tagging

Wok offers a tagging system to help categorize your content. You can tag content by including a YAML list in the tags field of the metadata, e.g.

title: My new eco-friendly pants
tags: [recycling, bottomware]
---
TIL pants made from recycled tires are *hot*.

You can use tags like so:

Example template

This template fragment will load all content pages on the entire site with the tag "frontpage" and display links to them in a list.

<ul>
{% for tagged_page in site.tags['frontpage'] %}
   <li><a href="{{ tagged_page.url }}">{{ tagged_page.title }}</a></li>
{% endfor %}
</ul>