From 813de5ccd6b1befd0d7efb7468402d3a7cb4913e Mon Sep 17 00:00:00 2001
From: frankieliu <frankie.y.liu@gmail.com>
Date: Sun, 05 Jan 2020 20:16:57 +0000
Subject: [PATCH] Fix to take care of multiple author list, or for setting the (#221)
---
layouts/_default/single.html | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
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 @@
</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 */}}
--
Gitblit v1.10.0