json-schema:fix multiple authors in config displayed incorrectly

* is of type `[]interface {}` and not `[]string`
This commit is contained in:
Aditya Telange 2020-10-25 13:08:03 +05:30
parent 0bd68d242c
commit 1256f353e5
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -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 -}}
{