mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
sitemap.xml.gz -> index.xml.gz
This commit is contained in:
parent
66868a352b
commit
8070b8dd61
2 changed files with 3 additions and 3 deletions
4
Rakefile
4
Rakefile
|
@ -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}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue