mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 11:45:26 +01:00 
			
		
		
		
	author(partial): fix multiple authors in config displayed incorrectly
* is of type `[]interface {}` and not `[]string`
			
			
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| {{- if or .Params.author .Site.Params.author }} | {{- if or .Params.author .Site.Params.author }} | ||||||
| {{- $author := (.Params.author | default .Site.Params.author)}} | {{- $author := (.Params.author | default .Site.Params.author)}} | ||||||
| {{- $author_type := (printf "%T" $author) }} | {{- $author_type := (printf "%T" $author) }} | ||||||
| {{- if (eq $author_type "[]string") }} | {{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}") ) }} | ||||||
| {{- (delimit $author ", " ) }} | {{- (delimit $author ", " ) }} | ||||||
| {{- else }} | {{- else }} | ||||||
| {{- $author }} | {{- $author }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange