Rename authors.html to func-authors.html
This commit is contained in:
13
layouts/partials/paige/func-authors.html
Normal file
13
layouts/partials/paige/func-authors.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ $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 }}
|
Reference in New Issue
Block a user