diff --git a/wowchemy/layouts/_default/sitemap.xml b/wowchemy/layouts/_default/sitemap.xml index b5761c61..9f607424 100644 --- a/wowchemy/layouts/_default/sitemap.xml +++ b/wowchemy/layouts/_default/sitemap.xml @@ -2,7 +2,7 @@ {{/* Check that page is built (has a URL) and is not private. */}} - {{ range where (where .Data.Pages "Permalink" "!=" nil) "Params.private" "ne" true }} + {{ range where (where .Data.Pages "Permalink" "!=" "") "Params.private" "ne" true }} {{ .Permalink }} {{- if not .Lastmod.IsZero }}{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}