mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-05-21 11:05:49 +00:00
87de3fb024
* feat(layouts): move all files in layouts/_default up to the layouts/ root. * feat(layouts): rename layouts/partials folder to layouts/_partials * feat(layouts): rename layouts/shortcodes folder to layouts/_shortcodes * feat(taxonomy): add new taxonomy layout template A template named taxonomy.html used to be a candidate for both Page kind term and taxonomy, now it’s only considered for taxonomy.
10 lines
316 B
HTML
10 lines
316 B
HTML
{{- if or .Params.author site.Params.author }}
|
|
{{- $author := (.Params.author | default site.Params.author) }}
|
|
{{- $author_type := (printf "%T" $author) }}
|
|
{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
|
|
{{- (delimit $author ", " ) }}
|
|
{{- else }}
|
|
{{- $author }}
|
|
{{- end }}
|
|
{{- end -}}
|