aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2022-12-21 17:42:11 -0800
committerBjørn Erik Pedersen <[email protected]>2022-12-22 08:53:58 +0100
commit4989da653d601dcb539338f7e12ae825ce4a0db9 (patch)
tree3f9b0dc24cc17bfaf301c76327aa5b3198d7fe84
parentcd1ed563a82f8a9ebdd3109230e34e74bf5ec6eb (diff)
downloadhugo-4989da653d601dcb539338f7e12ae825ce4a0db9.tar.gz
hugo-4989da653d601dcb539338f7e12ae825ce4a0db9.zip
Revert "tpl/tplimpl: Use https in sitemap templates"
This reverts commit 3fd0b78498597ceb343b7fda2e9b652f3e957478.
-rw-r--r--hugolib/minify_publisher_test.go2
-rw-r--r--tpl/tplimpl/embedded/templates/_default/sitemap.xml4
-rw-r--r--tpl/tplimpl/embedded/templates/_default/sitemapindex.xml2
3 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/minify_publisher_test.go b/hugolib/minify_publisher_test.go
index 189dc463f..03b46a5fe 100644
--- a/hugolib/minify_publisher_test.go
+++ b/hugolib/minify_publisher_test.go
@@ -59,5 +59,5 @@ func TestMinifyPublisher(t *testing.T) {
b.AssertFileContent("public/index.xml", "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\"><channel><title/><link>https://example.org/</link>")
// Sitemap
- b.AssertFileContent("public/sitemap.xml", "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><urlset xmlns=\"https://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xhtml=\"https://www.w3.org/1999/xhtml\"><url><loc>h")
+ b.AssertFileContent("public/sitemap.xml", "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"><url><loc>h")
}
diff --git a/tpl/tplimpl/embedded/templates/_default/sitemap.xml b/tpl/tplimpl/embedded/templates/_default/sitemap.xml
index 5d9448063..cdb3748e8 100644
--- a/tpl/tplimpl/embedded/templates/_default/sitemap.xml
+++ b/tpl/tplimpl/embedded/templates/_default/sitemap.xml
@@ -1,6 +1,6 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
-<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
- xmlns:xhtml="https://www.w3.org/1999/xhtml">
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range .Data.Pages }}
{{- if .Permalink -}}
<url>
diff --git a/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml b/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml
index 616f47729..01cf65bc5 100644
--- a/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml
+++ b/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml
@@ -1,5 +1,5 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
-<sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
+<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range . }}
<sitemap>
<loc>{{ .SitemapAbsURL }}</loc>