hugo-PaperMod/layouts/partials/author.html
Aditya Telange bc2b82c370
author(partial): init, with support for multiple authors
* usage:
    author: ["me", "you"]
2020-10-25 12:16:36 +05:30

10 lines
277 B
HTML

{{- if or .Params.author .Site.Params.author }}
{{- $author := (.Params.author | default .Site.Params.author)}}
{{- $author_type := (printf "%T" $author) }}
{{- if (eq $author_type "[]string") }}
{{- (delimit $author ", " ) }}
{{- else }}
{{- $author }}
{{- end }}
{{- end -}}