diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-25 13:08:03 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-25 13:08:03 +0530 |
| commit | 1256f353e5b9c4716578f55c443786429dea0e4d (patch) | |
| tree | f427ba960a29fdb1919a43ad04653350159b630f | |
| parent | 0bd68d242c1e19ea0ee3cd16c547957709160b88 (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.html | 2 |
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 -}} { |
