mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-04-21 14:12:45 +00:00
Fix to take care of multiple author list, or for setting the (#221)
author parameter to a []string, which is the default for ox-hugo output.
This commit is contained in:
parent
2ee56e694c
commit
813de5ccd6
@ -20,7 +20,13 @@
|
|||||||
</h1>
|
</h1>
|
||||||
{{ with .Params.author }}
|
{{ with .Params.author }}
|
||||||
<p class="tracked">
|
<p class="tracked">
|
||||||
By <strong>{{ . | markdownify }}</strong>
|
By <strong>
|
||||||
|
{{ if reflect.IsSlice . }}
|
||||||
|
{{ delimit . ", " | markdownify }}
|
||||||
|
{{else}}
|
||||||
|
{{ . | markdownify }}
|
||||||
|
{{ end }}
|
||||||
|
</strong>
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user