Support multiple authors

This commit is contained in:
Miguel de la Cruz 2024-07-29 13:34:53 +02:00
parent 1049c3e512
commit c643883250

View file

@ -5,7 +5,7 @@
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
</time>
{{ with .Params.author }}· {{.}}{{ end }}
{{ with .Params.author }}· {{if (reflect.IsSlice .)}}{{delimit . ", "}}{{else}}{{.}}{{end}}{{ end }}
</p>
{{ end }}
<content>