From 813de5ccd6b1befd0d7efb7468402d3a7cb4913e Mon Sep 17 00:00:00 2001 From: frankieliu Date: Sun, 5 Jan 2020 12:16:57 -0800 Subject: [PATCH] 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. --- layouts/_default/single.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 79e6784..6a0daf1 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,7 +20,13 @@ {{ with .Params.author }}

- By {{ . | markdownify }} + By + {{ if reflect.IsSlice . }} + {{ delimit . ", " | markdownify }} + {{else}} + {{ . | markdownify }} + {{ end }} +

{{ end }} {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}