Use a new authors array instead of a string

This commit is contained in:
2021-10-27 19:39:25 -05:00
parent 7ffa6c068c
commit fe4d0979d6
3 changed files with 16 additions and 2 deletions

View File

@ -20,7 +20,17 @@
{{ end }}
{{ end }}
{{ $authorString := "" }}
{{ with .Params.authors }}
{{ $authorString = delimit . ", " }}
{{ else }}
{{ with .Params.author }}
{{ $authorString = . }}
{{ end }}
{{ end }}
{{ with $authorString }}
<span class="post-meta-item">
{{ partial "icon.html" "user-circle" }}
{{ . }}