From 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cddd Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 20 Jun 2021 12:30:41 -0700 Subject: [PATCH] [PATCH] Fix date format in schema and opengraph templates cherry-picked from https://github.com/gohugoio/hugo/commit/34e4742f0caab0d3eb9efd00fce4157d112617b5 --- layouts/partials/templates/opengraph.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}