mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
json-schema:fix multiple authors in config displayed incorrectly
* is of type `[]interface {}` and not `[]string`
This commit is contained in:
parent
0bd68d242c
commit
1256f353e5
@ -46,7 +46,7 @@
|
|||||||
"dateModified": {{ .Lastmod }},
|
"dateModified": {{ .Lastmod }},
|
||||||
{{- with (.Params.author | default .Site.Params.author) }}
|
{{- with (.Params.author | default .Site.Params.author) }}
|
||||||
"author":
|
"author":
|
||||||
{{- if (eq (printf "%T" .) "[]string") -}}
|
{{- if (or (eq (printf "%T" .) "[]string") (eq (printf "%T" .) "[]interface {}")) -}}
|
||||||
[{{- range $i, $v := . -}}
|
[{{- range $i, $v := . -}}
|
||||||
{{- if $i }}, {{end -}}
|
{{- if $i }}, {{end -}}
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user