author(partial): init, with support for multiple authors
* usage: author: ["me", "you"]
This commit is contained in:
parent
3e84ff0435
commit
bc2b82c370
9
layouts/partials/author.html
Normal file
9
layouts/partials/author.html
Normal file
@ -0,0 +1,9 @@
|
||||
{{- 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 -}}
|
Loading…
Reference in New Issue
Block a user