mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	[PATCH] tpl/tplimpl: Deprecate .Site.Social usage with internal templates
cherry-picked from 4910312ee7
			
			
This commit is contained in:
		 Joe Mooring
					Joe Mooring
				
			
				
					committed by
					
						 Aditya Telange
						Aditya Telange
					
				
			
			
				
	
			
			
			 Aditya Telange
						Aditya Telange
					
				
			
						parent
						
							102e089bc3
						
					
				
				
					commit
					3fb112bc85
				
			| @@ -50,5 +50,16 @@ | ||||
| {{ end }}{{ end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} | ||||
| {{- $facebookAdmin := "" }} | ||||
| {{- with site.Params.social.facebook_admin }} | ||||
|   {{- $facebookAdmin = . }} | ||||
| {{- else }} | ||||
|   {{- with site.Social.facebook_admin }} | ||||
|     {{- $facebookAdmin = . }} | ||||
|     {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }} | ||||
|   {{- end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- /* Facebook Page Admin ID for Domain Insights */}} | ||||
| {{- with site.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }} | ||||
| {{ with $facebookAdmin }}<meta property="fb:admins" content="{{ . }}" />{{ end }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user