Statico Source
Contents

Taxonomies

One page per tag, category or any other front matter field.

Content and data, page 14

Create pages/tags/[tag].html; Statico writes one page per distinct value of the tags (or tag) front matter field, at /tags/<slug>/:

<layout src="main.html" title="Posts tagged {tag}">
  <h1>{tag} ({term.count})</h1>
  <ForEach content="posts" as="post" where="post.tags contains tag">…</ForEach>
</layout>

Works for any field: [category].html uses categories/category. List all terms anywhere with <ForEach collection="taxonomy/tags" as="t">.