summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-25 13:08:03 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-25 13:08:03 +0530
commit1256f353e5b9c4716578f55c443786429dea0e4d (patch)
treef427ba960a29fdb1919a43ad04653350159b630f
parent0bd68d242c1e19ea0ee3cd16c547957709160b88 (diff)
json-schema:fix multiple authors in config displayed incorrectly
* is of type `[]interface {}` and not `[]string`
-rw-r--r--layouts/partials/templates/schema_json.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
index ff84c97..f04a0bf 100644
--- a/layouts/partials/templates/schema_json.html
+++ b/layouts/partials/templates/schema_json.html
@@ -46,7 +46,7 @@
"dateModified": {{ .Lastmod }},
{{- with (.Params.author | default .Site.Params.author) }}
"author":
- {{- if (eq (printf "%T" .) "[]string") -}}
+ {{- if (or (eq (printf "%T" .) "[]string") (eq (printf "%T" .) "[]interface {}")) -}}
[{{- range $i, $v := . -}}
{{- if $i }}, {{end -}}
{