mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	[PATCH] tpl/embedded: Make Open Graph's series optional
cherry-picked from b82b547acb
			
			
This commit is contained in:
		 Razon Yang
					Razon Yang
				
			
				
					committed by
					
						 Aditya Telange
						Aditya Telange
					
				
			
			
				
	
			
			
			 Aditya Telange
						Aditya Telange
					
				
			
						parent
						
							86362ebd72
						
					
				
				
					commit
					102e089bc3
				
			| @@ -41,12 +41,14 @@ | |||||||
| {{- /* If it is part of a series, link to related articles */}} | {{- /* If it is part of a series, link to related articles */}} | ||||||
| {{- $permalink := .Permalink }} | {{- $permalink := .Permalink }} | ||||||
| {{- $siteSeries := site.Taxonomies.series }} | {{- $siteSeries := site.Taxonomies.series }} | ||||||
|  | {{- if $siteSeries }} | ||||||
| {{ with .Params.series }}{{- range $name := . }} | {{ with .Params.series }}{{- range $name := . }} | ||||||
|   {{- $series := index $siteSeries ($name | urlize) }} |   {{- $series := index $siteSeries ($name | urlize) }} | ||||||
|   {{- range $page := first 6 $series.Pages }} |   {{- range $page := first 6 $series.Pages }} | ||||||
|     {{- if ne $page.Permalink $permalink }}<meta property="og:see_also" content="{{ $page.Permalink }}" />{{ end }} |     {{- if ne $page.Permalink $permalink }}<meta property="og:see_also" content="{{ $page.Permalink }}" />{{ end }} | ||||||
|   {{- end }} |   {{- end }} | ||||||
| {{ end }}{{ end }} | {{ end }}{{ end }} | ||||||
|  | {{- end }} | ||||||
|  |  | ||||||
| {{- /* Facebook Page Admin ID for Domain Insights */}} | {{- /* Facebook Page Admin ID for Domain Insights */}} | ||||||
| {{- with site.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }} | {{- with site.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user