Skip to content

Commit

Permalink
Add rails_release + gemmy page to the sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Nov 8, 2024
1 parent c86fe81 commit e31b45a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
sitemaps_path: ""
}

rails_releases = RailsRelease.order(:version).to_a

SitemapGenerator::Sitemap.create opts do
# Add static paths
add root_path, changefreq: "daily", priority: 1.0
Expand All @@ -30,5 +32,9 @@
# Add dynamic paths for all gemmies
Gemmy.find_each do |gemmy|
add gemmy_path(gemmy), lastmod: gemmy.last_checked_at, changefreq: "weekly", priority: 0.8

rails_releases.each do |rails_release|
add gemmy_rails_release_path(gemmy, rails_release)
end
end
end

0 comments on commit e31b45a

Please sign in to comment.