mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	[PATCH] Fix date format in schema and opengraph templates
cherry-picked from 34e4742f0c
			
			
This commit is contained in:
		 Joe Mooring
					Joe Mooring
				
			
				
					committed by
					
						 Aditya Telange
						Aditya Telange
					
				
			
			
				
	
			
			
			 Aditya Telange
						Aditya Telange
					
				
			
						parent
						
							ddfea82cc7
						
					
				
				
					commit
					3a0a4811cb
				
			| @@ -27,8 +27,8 @@ | ||||
| {{- if .IsPage }} | ||||
| {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} | ||||
| <meta property="article:section" content="{{ .Section }}" /> | ||||
| {{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }} | ||||
| {{ with .Lastmod }}<meta property="article:modified_time" content="{{ .Format $iso8601 }}" />{{ end }} | ||||
| {{ with .PublishDate }}<meta property="article:published_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end }} | ||||
| {{ with .Lastmod }}<meta property="article:modified_time" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end }} | ||||
| {{- end -}} | ||||
|  | ||||
| {{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user