sitemap.xml.gz -> index.xml.gz

This commit is contained in:
Kyle Drake 2019-10-10 10:47:03 +00:00
parent 66868a352b
commit 8070b8dd61
2 changed files with 3 additions and 3 deletions

View file

@ -570,8 +570,8 @@ task :generate_sitemap => [:environment] do
end end
# Final sitemap.xml.gz entrypoint # Final index.xml.gz entrypoint
Zlib::GzipWriter.open File.join(sitemap_root, 'sitemap.xml.gz') do |gz| Zlib::GzipWriter.open File.join(sitemap_root, 'index.xml.gz') do |gz|
gz.write %{<?xml version="1.0" encoding="UTF-8"?>\n} gz.write %{<?xml version="1.0" encoding="UTF-8"?>\n}
gz.write %{<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n} gz.write %{<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n}
gz.write %{<sitemap><loc>https://neocities.org/sitemap/root.xml.gz</loc><lastmod>#{Time.now.utc.iso8601}</lastmod></sitemap>\n} gz.write %{<sitemap><loc>https://neocities.org/sitemap/root.xml.gz</loc><lastmod>#{Time.now.utc.iso8601}</lastmod></sitemap>\n}

View file

@ -1,3 +1,3 @@
User-agent: * User-agent: *
Allow: / Allow: /
Sitemap: https://neocities.org/sitemap/sitemap.xml.gz Sitemap: https://neocities.org/sitemap/index.xml.gz