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:
23
layouts/_default/taxonomy.html
Normal file
23
layouts/_default/taxonomy.html
Normal 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 -}}
|
||||
13
layouts/_default/term.html
Normal file
13
layouts/_default/term.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user