File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- SitemapGenerator ::Sitemap . default_host = 'https://registry.seqco.de'
1+ SitemapGenerator ::Sitemap . default_host = 'https://registry.seqco.de'
22SitemapGenerator ::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 )
517SitemapGenerator ::Sitemap . create do
618 extend HelpTopics
719 add root_path , changefreq : :daily , priority : 1.0
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
5467end
You can’t perform that action at this time.
0 commit comments