Skip to content

Commit d6c4a64

Browse files
committed
Update sitemap.rb
1 parent 229a037 commit d6c4a64

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

config/sitemap.rb

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
SitemapGenerator::Sitemap.default_host = 'https://registry.seqco.de'
1+
SitemapGenerator::Sitemap.default_host = 'https://registry.seqco.de'
22
SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/'
3+
SitemapGenerator::Sitemap.sitemaps_host = '%s/%s' % [
4+
SitemapGenerator::Sitemap.default_host,
5+
SitemapGenerator::Sitemap.sitemaps_path
6+
]
7+
8+
# Global index
9+
SitemapGenerator::Sitemap.adapter = SitemapGenerator::FileAdapter.new(
10+
:path => 'public/',
11+
:filename => 'sitemap.xml'
12+
)
13+
SitemapGenerator::Sitemap.create_index = true
314

415
# Top-level pages
16+
SitemapGenerator::Sitemap.namer = SitemapGenerator::SimpleNamer.new(:pages)
517
SitemapGenerator::Sitemap.create do
618
extend HelpTopics
719
add root_path, changefreq: :daily, priority: 1.0
@@ -47,8 +59,9 @@
4759
Name.all_public.find_each do |name|
4860
add name_path(name), lastmod: name.updated_at,
4961
changefreq: :weekly, priority: 0.6
62+
add wiki_name_path(name), lastmod: name.updated_at,
63+
changefreq: :weekly, priority: 0.1
5064
# TODO:
51-
# - add wiki
5265
# - add network
5366
end
5467
end

0 commit comments

Comments
 (0)