diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html
index 13e7b2bd..9e8df143 100644
--- a/layouts/partials/templates/opengraph.html
+++ b/layouts/partials/templates/opengraph.html
@@ -27,8 +27,8 @@
{{- if .IsPage }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
-{{ with .PublishDate }}{{ end }}
-{{ with .Lastmod }}{{ end }}
+{{ with .PublishDate }}{{ end }}
+{{ with .Lastmod }}{{ end }}
{{- end -}}
{{- with .Params.audio }}{{ end }}