From 83f71d73ce395aad9354ab205aa7568ba3f12b2a Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 30 Sep 2024 09:43:03 +0200 Subject: Removed custom sitemap template --- CHANGELOG.md | 4 +++- layouts/_default/sitemap.xml | 21 --------------------- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 layouts/_default/sitemap.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 916c961..efcf711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,7 +46,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `layouts/partials/site-author.html` These partials are no longer used in the theme. [See the documentation for details](https://gohugo-theme-ed.netlify.app/documentation/#configuring-author-selection). - +- Removed custom sitemap template (`layouts/_default/sitemap.xml`), relying + entirely on Hugo's built-in rendering. + ## [v0.8.0](https://github.com/sergeyklay/gohugo-theme-ed/compare/v0.7.0...v0.8.0) ### Added diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml deleted file mode 100644 index 3cba759..0000000 --- a/layouts/_default/sitemap.xml +++ /dev/null @@ -1,21 +0,0 @@ -{{- printf "" | safeHTML }} - - {{ range .Data.Pages }}{{ if ne .Params.private true }} - - {{ .Permalink }}{{ if not .Lastmod.IsZero }} - {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05Z07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} - {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} - {{ end }} - {{ end }} - - {{ end }}{{ end }} - -- cgit v1.2.3