Fix to take care of multiple author list, or for setting the

author parameter to a []string, which is the default for ox-hugo
output.
This commit is contained in:
Frankie Liu 2019-10-26 19:25:37 -07:00
parent 0d9656d939
commit d2f66f3a24

View File

@ -20,7 +20,13 @@
</h1>
{{ with .Params.author }}
<p class="tracked">
By <strong>{{ . | markdownify }}</strong>
By <strong>
{{ if reflect.IsSlice . }}
{{ delimit . ", " | markdownify }}
{{else}}
{{ . | markdownify }}
{{ end }}
</strong>
</p>
{{ end }}
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}