diff --git a/layouts/partials/author.html b/layouts/partials/author.html new file mode 100644 index 0000000..b3a3d74 --- /dev/null +++ b/layouts/partials/author.html @@ -0,0 +1,10 @@ +{{- if or .Params.author site.Params.author }} +{{- $author := (.Params.author | default site.Params.author) }} +{{- if reflect.IsMap $author }} +{{- $author.name }} +{{- else if (or (eq (printf "%T" $author) "[]string") (eq (printf "%T" $author) "[]interface {}")) }} +{{- (delimit $author ", " ) }} +{{- else }} +{{- $author }} +{{- end }} +{{- end -}}