Tags¶
Hand-authored (the archive plugin doesn't run on GitHub Pages). Every hack, tool review, and field note is a post now, so a single pass over site.posts pools every #tag the theme links to — and it resolves here.
{% assign all_docs = site.posts %} {% capture tagblob %}{% for d in all_docs %}{% for t in d.tags %}{{ t }},{% endfor %}{% endfor %}{% endcapture %} {% assign all_tags = tagblob | split: "," | uniq | sort %} {% for tag in all_tags %}{% unless tag == "" %}
{{ tag }}
-
{% for d in all_docs %}{% if d.tags contains tag %}
- {{ d.title }} {% endif %}{% endfor %}
{% endunless %}{% endfor %} {% unless all_tags.size > 0 %}
No tags yet.
{% endunless %}