mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	json-schema:fix multiple authors in config displayed incorrectly
* is of type `[]interface {}` and not `[]string`
			
			
This commit is contained in:
		| @@ -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 -}} | ||||
|   { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange