Make taxonomy layouts work with new system.

This commit is contained in:
Fredrik Jonsson 2025-07-14 08:39:16 +02:00
commit 52d48a9f3f
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,4 @@
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
<h2 class="title"><a href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="meta">({{ .Data.Pages.Len }})</span></h2>
{{ with .Description }}<p>{{ . }}</p>{{ end }}
</article>

13
layouts/taxonomy.html Normal file
View file

@ -0,0 +1,13 @@
{{ define "main" -}}
<main class="main layout__main">
<header>
<h1 class="title">{{ .Title }}</h1>
</header>
{{ .Content }}
{{ range .Pages.ByTitle -}}
{{ .Render "taxonomy-summary" }}
{{ end -}}
</main>
{{ end -}}