Skip to content
Permalink
Browse files
[PATCH] Fix date format in schema and opengraph templates
cherry-picked from gohugoio/hugo@34e4742
  • Loading branch information
jmooring authored and adityatelange committed Sep 3, 2022
1 parent ddfea82 commit 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cddd
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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 }}

0 comments on commit 3a0a481

Please sign in to comment.