Skip to content

Commit 98eda87

Browse files
committed
Let Sitemap generator prefix urls
1 parent d6e0272 commit 98eda87

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/workers/sitemap_refresh_worker.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ def perform
1212
SitemapGenerator::Sitemap.adapter = SitemapGenerator::WaveAdapter.new
1313

1414
SitemapGenerator::Sitemap.create do
15-
add('https://coderwall.com/welcome', priority: 0.7, changefreq: 'monthly')
16-
add('https://coderwall.com/contact_us', priority: 0.2, changefreq: 'monthly')
17-
add('https://coderwall.com/blog', priority: 0.5, changefreq: 'weekly')
18-
add('https://coderwall.com/api', priority: 0.2, changefreq: 'monthly')
19-
add('https://coderwall.com/faq', priority: 0.2, changefreq: 'monthly')
20-
add('https://coderwall.com/privacy_policy', priority: 0.2, changefreq: 'monthly')
21-
add('https://coderwall.com/tos', priority: 0.2, changefreq: 'monthly')
22-
add('https://coderwall.com/jobs', priority: 0.8, changefreq: 'daily')
23-
add('https://coderwall.com/employers', priority: 0.7, changefreq: 'monthly')
15+
add('/welcome', priority: 0.7, changefreq: 'monthly')
16+
add('/contact_us', priority: 0.2, changefreq: 'monthly')
17+
add('/blog', priority: 0.5, changefreq: 'weekly')
18+
add('/api', priority: 0.2, changefreq: 'monthly')
19+
add('/faq', priority: 0.2, changefreq: 'monthly')
20+
add('/privacy_policy', priority: 0.2, changefreq: 'monthly')
21+
add('/tos', priority: 0.2, changefreq: 'monthly')
22+
add('/jobs', priority: 0.8, changefreq: 'daily')
23+
add('/employers', priority: 0.7, changefreq: 'monthly')
2424

2525
Protip.find_each(batch_size: 30) do |protip|
2626
add(protip_path(protip), lastmod: protip.updated_at, priority: 1.0)

0 commit comments

Comments
 (0)