adds pages, budgets and polls to sitemap.rb
This commit is contained in:
@@ -15,7 +15,11 @@ SitemapGenerator::Sitemap.create do
|
||||
add page_name if page_name.present?
|
||||
end
|
||||
|
||||
add "help_translate"
|
||||
add more_info_path
|
||||
add how_to_use_path
|
||||
add faq_path
|
||||
add participation_facts_path
|
||||
add participation_world_path
|
||||
|
||||
add debates_path, priority: 0.7, changefreq: "daily"
|
||||
Debate.find_each do |debate|
|
||||
@@ -27,10 +31,18 @@ SitemapGenerator::Sitemap.create do
|
||||
add proposal_path(proposal), lastmod: proposal.updated_at
|
||||
end
|
||||
|
||||
add proposal_ballots_path
|
||||
|
||||
add spending_proposals_path, priority: 0.7, changefreq: "daily"
|
||||
SpendingProposal.find_each do |spending_proposal|
|
||||
add spending_proposal_path(spending_proposal), lastmod: spending_proposal.updated_at
|
||||
end
|
||||
|
||||
add budgets_path, priority: 0.7, changefreq: "daily"
|
||||
Budget.find_each do |budget|
|
||||
add budget_path(budget), lastmod: budget.updated_at
|
||||
end
|
||||
|
||||
add polls_path, priority: 0.7, changefreq: "daily"
|
||||
Poll.find_each do |poll|
|
||||
add poll_path(poll), lastmod: poll.starts_at
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user