From: Alan Orth Date: Tue, 21 Feb 2017 13:18:59 +0000 (+0200) Subject: tpl: Use og:updated_time OpenGraph tag on nodes X-Git-Tag: v0.19~28 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eb27c47f;p=brevno-suite%2Fhugo tpl: Use og:updated_time OpenGraph tag on nodes A previous commit greatly improved the OpenGraph tags generated by Hugo's internal opengraph template, but there was a minor error in the fix. Nodes are of type "website" and according to the Facebook docs they should use og:updated_time. See: https://github.com/spf13/hugo/pull/2979 See: https://developers.facebook.com/docs/reference/opengraph/object-type/website/ --- diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go index 44bd7618..74bf0a4d 100644 --- a/tpl/tplimpl/template_embedded.go +++ b/tpl/tplimpl/template_embedded.go @@ -172,7 +172,7 @@ func (t *GoHTMLTemplate) EmbedTemplates() { {{ else if not .Date.IsZero }}{{ end }} {{ if not .Lastmod.IsZero }}{{ end }} {{ else }} -{{ if not .Date.IsZero }}{{ end }} +{{ if not .Date.IsZero }}{{ end }} {{ end }}{{ with .Params.audio }} {{ end }}{{ with .Params.locale }} {{ end }}{{ with .Site.Params.title }}