quellcode.0x90.space/layouts/partials/author.html
v 6892a6f7b0 Squashed 'themes/PaperMod/' content from commit 4a924ce
git-subtree-dir: themes/PaperMod
git-subtree-split: 4a924cef54081b61530a30bd69d442ae95f16561
2023-07-05 19:23:15 +02:00

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 -}}