mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	templates: social-meta: prefer cover image over other images
This commit is contained in:
		| @@ -8,7 +8,7 @@ | ||||
| {{- else}} | ||||
| <meta property="og:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" /> | ||||
| {{- end}} | ||||
| {{- end }} | ||||
| {{- else }} | ||||
| {{ with $.Params.images }}{{ range first 6 . -}} | ||||
| <meta property="og:image" content="{{ . | absURL }}" /> | ||||
| {{ end }}{{ else -}} | ||||
| @@ -21,6 +21,7 @@ | ||||
| {{- with $.Site.Params.images -}} | ||||
| <meta property="og:image" content="{{ index . 0 | absURL }}"/> | ||||
| {{ end }}{{ end }}{{ end }} | ||||
| {{- end }} | ||||
|  | ||||
| {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} | ||||
| {{- if .IsPage }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange