]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Revert "tpl/tplimpl: Use https in sitemap templates"
authorJoe Mooring <joe.mooring@veriphor.com>
Thu, 22 Dec 2022 01:42:11 +0000 (17:42 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 22 Dec 2022 07:53:58 +0000 (08:53 +0100)
This reverts commit 3fd0b78498597ceb343b7fda2e9b652f3e957478.

hugolib/minify_publisher_test.go
tpl/tplimpl/embedded/templates/_default/sitemap.xml
tpl/tplimpl/embedded/templates/_default/sitemapindex.xml

index 189dc463fb23ed61316fd7214c7e95d5dc6e5815..03b46a5fe7eb39773a7b86cb8dc22b27ebb846b0 100644 (file)
@@ -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")
 }
index 5d9448063ae7ad9bac8b211a3683489b7886cdfc..cdb3748e8625cebe06709dbe5a6a8917c49b25fb 100644 (file)
@@ -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>
index 616f47729008c75ad35604758eb892dce25e2d74..01cf65bc5989b92461523c222198dc84744b8775 100644 (file)
@@ -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>