mirror of
https://github.com/DragonRidersUnite/book
synced 2024-11-16 07:47:42 +01:00
fix(sitemap): remove duplicate index
This commit is contained in:
parent
8d843582dc
commit
c4ecfc0748
1 changed files with 1 additions and 3 deletions
|
@ -8,12 +8,10 @@ SitemapGenerator::Sitemap.default_host = 'https://book.dragonriders.community'
|
||||||
SitemapGenerator::Sitemap.public_path = 'book'
|
SitemapGenerator::Sitemap.public_path = 'book'
|
||||||
SitemapGenerator::Sitemap.compress = false
|
SitemapGenerator::Sitemap.compress = false
|
||||||
SitemapGenerator::Sitemap.create do
|
SitemapGenerator::Sitemap.create do
|
||||||
add '/', changefreq: 'weekly', priority: 0.9
|
|
||||||
|
|
||||||
# assumes no nested URLs
|
# assumes no nested URLs
|
||||||
Dir.glob('book/*.html').each do |file|
|
Dir.glob('book/*.html').each do |file|
|
||||||
file = file.split('/').last
|
file = file.split('/').last
|
||||||
next if file == "index.html"
|
next if file == "index.html" || file == "introduction.html"
|
||||||
add "/#{file}", changefreq: 'weekly'
|
add "/#{file}", changefreq: 'weekly'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue