14 lines
362 B
HTML
14 lines
362 B
HTML
{{ $page := . }}
|
|
|
|
{{ $result := $page.GetTerms "authors" }}
|
|
|
|
{{ if and $page.IsPage (not $result) 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 }}
|