Adds taxonomy and term templates

Introduces basic templates for taxonomy and term pages.

These templates provide a foundation for displaying taxonomies and terms,
including listing associated content.
This commit is contained in:
fundor333
2025-09-14 02:33:38 +02:00
committed by Fundor333
parent 930f18c3af
commit 9c4ddb44ca
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{{- define "main" -}}
{{ $taxonomyObject := .Data.Terms }}
<div class="wrapper list-page">
<header class="header">
<h1 class="header-title center">{{ .Title }}</h1>
</header>
<main class="page-content" aria-label="Content">
{{ range $taxonomyObject.Alphabetical }}
<h2 class="post-year"><a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a></h2>
{{ range .Pages }}
{{ partial "postCard" . }}
{{ end }}
{{ end }}
</main>
</div>
{{- end -}}

View File

@@ -0,0 +1,13 @@
{{ define "main" }}
<div class="wrapper list-page">
<header class="header">
<h1 class="header-title center">{{ .Title }}</h1>
</header>
<main class="page-content" aria-label="Content">
{{ .Content }}
{{ range .Pages }}
{{ partial "postCard" . }}
{{ end }}
</div>
</main>
{{ end }}