diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index e5e6431..0781c4c 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -6,7 +6,13 @@ {{ end }}{{ end }} -{{ if not .Date.IsZero }}{{ end }}{{ with .Params.audio }} +{{ if .IsPage }} +{{ if not .Date.IsZero }}{{ end }} +{{ if not .Lastmod.IsZero }}{{ end }} +{{ else }} +{{ if not .Site.LastChange.IsZero }}{{ end }} +{{ end }} +{{ with .Params.audio }} {{ end }}{{ with .Params.locale }} {{ end }}{{ with .Site.Params.title }} {{ end }}{{ with .Params.videos }}