From bb1565b1affc32b0c023c4e2964b0fb2626d9eec Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Thu, 10 Dec 2020 03:21:17 +0100 Subject: [PATCH] author if 1 authors if more --- layouts/partials/singlebody.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/singlebody.html b/layouts/partials/singlebody.html index 854e41b..6cfda2b 100644 --- a/layouts/partials/singlebody.html +++ b/layouts/partials/singlebody.html @@ -21,7 +21,7 @@ {{- with $.GetPage (printf "/author/%s" $v) -}} {{- with not $k -}}
-
authors⁄
+
author{{ with $.Page.Params.authors }}{{ if gt (len .) 1 }}s{{ end }}{{ end }}⁄
{{- end -}}