mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	[PATCH] tpl/tplimpl: Fix deprecation logic in RSS template
cherry-pick from 23fcfb7f74
			
			
This commit is contained in:
		 Joe Mooring
					Joe Mooring
				
			
				
					committed by
					
						 Aditya Telange
						Aditya Telange
					
				
			
			
				
	
			
			
			 Aditya Telange
						Aditya Telange
					
				
			
						parent
						
							00488d0146
						
					
				
				
					commit
					ff7443b17f
				
			| @@ -1,7 +1,11 @@ | ||||
| {{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} | ||||
| {{- $authorEmail := "" }} | ||||
| {{- with site.Params.author.email }} | ||||
|   {{- $authorEmail = . }} | ||||
| {{- with site.Params.author }} | ||||
|   {{- if reflect.IsMap . }} | ||||
|     {{- with .email }} | ||||
|       {{- $authorEmail = . }} | ||||
|     {{- end }} | ||||
|   {{- end }} | ||||
| {{- else }} | ||||
|   {{- with site.Author.email }} | ||||
|     {{- $authorEmail = . }} | ||||
| @@ -11,8 +15,14 @@ | ||||
|  | ||||
| {{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} | ||||
| {{- $authorName := "" }} | ||||
| {{- with site.Params.author.name }} | ||||
|   {{- $authorName = . }} | ||||
| {{- with site.Params.author }} | ||||
|   {{- if reflect.IsMap . }} | ||||
|     {{- with .name }} | ||||
|       {{- $authorName = . }} | ||||
|     {{- end }} | ||||
|   {{- else }} | ||||
|     {{- $authorName  = . }} | ||||
|   {{- end }} | ||||
| {{- else }} | ||||
|   {{- with site.Author.name }} | ||||
|     {{- $authorName = . }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user