mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-11-10 05:32:05 -06:00
Use a new authors array instead of a string
This commit is contained in:
3 files changed
+16
-2
No files matched your search
@@ -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