Files
paige-hugo/layouts/partials/paige/func-authors.html
2025-02-05 15:50:46 -08:00

14 lines
362 B
HTML

{{ $page := . }}
{{ $result := $page.GetTerms "authors" }}
{{ if and (not $result) $page.IsPage site.Taxonomies.authors }}
{{ range $id, $taxonomy := site.Taxonomies.authors }}
{{ if eq $taxonomy.Page.Params.default true }}
{{ $result = $result | append $taxonomy.Page }}
{{ end }}
{{ end }}
{{ end }}
{{ return $result }}