From 78aa2e53c2032d9941a7339f42f74b876004e288 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 18 Apr 2024 17:35:49 +0300 Subject: [PATCH] Remove the now unneeded layouts/sitemap.xml This has now landed upstream and we can exclude stuff from sitemap natively https://github.com/gohugoio/hugo/commit/6738a3e79dd545603d9851832bc3140fd184bfef --- src/layouts/sitemap.xml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/layouts/sitemap.xml diff --git a/src/layouts/sitemap.xml b/src/layouts/sitemap.xml deleted file mode 100644 index 9c626df18..000000000 --- a/src/layouts/sitemap.xml +++ /dev/null @@ -1,12 +0,0 @@ -{{ printf "" | safeHTML }} - - {{- range where .Data.Pages "Params.sitemap.exclude" "ne" true -}}{{ if .Permalink }} - - {{ .Permalink }}{{ if not .Lastmod.IsZero }} - {{ safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") }}{{ end }}{{ with .Sitemap.ChangeFreq }} - {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} - {{ end }} - {{ end }} - {{ end }}{{ end }} -