mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 09:47:29 -05:00
Use a new authors array instead of a string
This commit is contained in:
@ -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" }}
|
||||
{{ . }}
|
||||
|
Reference in New Issue
Block a user