mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	author(partial): init, with support for multiple authors
* usage:
    author: ["me", "you"]
			
			
This commit is contained in:
		
							
								
								
									
										9
									
								
								layouts/partials/author.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								layouts/partials/author.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | {{- if or .Params.author .Site.Params.author }} | ||||||
|  | {{- $author := (.Params.author | default .Site.Params.author)}} | ||||||
|  | {{- $author_type := (printf "%T" $author) }} | ||||||
|  | {{- if (eq $author_type "[]string") }} | ||||||
|  | {{- (delimit $author ", " ) }} | ||||||
|  | {{- else }} | ||||||
|  | {{- $author }} | ||||||
|  | {{- end }} | ||||||
|  | {{- end -}} | ||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange