Moves taxonomy and term templates from the `_default` directory to the root `layouts` directory. This allows for more specific customization of these templates without requiring them to be placed within the `_default` folder.
24 lines
489 B
HTML
24 lines
489 B
HTML
{{- 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 -}}
|