bunteshaus.de/themes/buha/layouts/_default/taxonomy.html
2022-06-22 16:45:15 +02:00

13 lines
388 B
HTML

{{ define "content" }}
{{ if eq .Kind "taxonomy" }}
<div>
{{ range .Pages }}
<a href="{{ .Page.Permalink }}" class="underline" style="margin-right: 1rem;">{{ .Page.Title }}</a>
{{ end }}
</div>
{{ else }}
{{- $pages := .Data.Pages -}}
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
{{ end }}
{{ end }}