Try doing a wee cleanup
This commit is contained in:
9
src/themes/papermod/layouts/partials/author.html
Normal file
9
src/themes/papermod/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 (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
|
||||
{{- (delimit $author ", " ) }}
|
||||
{{- else }}
|
||||
{{- $author }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user