mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 11:45:26 +01:00 
			
		
		
		
	[PATCH] tpl/tplimpl: Fix deprecation logic in embedded templates
cherry-picked from cb98e9061b
			
			
This commit is contained in:
		 Joe Mooring
					Joe Mooring
				
			
				
					committed by
					
						 Aditya Telange
						Aditya Telange
					
				
			
			
				
	
			
			
			 Aditya Telange
						Aditya Telange
					
				
			
						parent
						
							3fb112bc85
						
					
				
				
					commit
					87df659c18
				
			| @@ -52,8 +52,10 @@ | ||||
|  | ||||
| {{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} | ||||
| {{- $facebookAdmin := "" }} | ||||
| {{- with site.Params.social.facebook_admin }} | ||||
|   {{- $facebookAdmin = . }} | ||||
| {{- with site.Params.social }} | ||||
|   {{- if reflect.IsMap . }} | ||||
|     {{- $facebookAdmin = .facebook_admin }} | ||||
|   {{- end }} | ||||
| {{- else }} | ||||
|   {{- with site.Social.facebook_admin }} | ||||
|     {{- $facebookAdmin = . }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user