We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddfea82 commit 3a0a481Copy full SHA for 3a0a481
1 file changed
layouts/partials/templates/opengraph.html
@@ -27,8 +27,8 @@
27
{{- if .IsPage }}
28
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
29
<meta property="article:section" content="{{ .Section }}" />
30
-{{ with .PublishDate }}<meta property="article:published_time" content="{{ .Format $iso8601 }}" />{{ end }}
31
-{{ 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 }}
32
{{- end -}}
33
34
{{- with .Params.audio }}<meta property="og:audio" content="{{ . }}" />{{ end }}
0 commit comments