From 1256f353e5b9c4716578f55c443786429dea0e4d Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 25 Oct 2020 13:08:03 +0530 Subject: [PATCH] json-schema:fix multiple authors in config displayed incorrectly * is of type `[]interface {}` and not `[]string` --- layouts/partials/templates/schema_json.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index ff84c97f..f04a0bfa 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 -}} {