Permalink
Browse files

Sitemap

  • Loading branch information...
Godoy committed Mar 7, 2015
1 parent c3df3da commit 56cad016d28fee5fc83711408ebf60a1d5309a53
Showing with 20 additions and 1 deletion.
  1. +2 −1 Gemfile
  2. +3 −0 Gemfile.lock
  3. +15 −0 config/sitemap.rb
  4. BIN public/sitemap.xml.gz
View
@@ -44,4 +44,5 @@ gem "bootstrap-sass", "~> 3.3.3"
gem "faker"
gem "meta-tags"
gem 'friendly_id', '~> 5.1.0'
gem 'friendly_id', '~> 5.1.0'
gem 'sitemap_generator'
View
@@ -137,6 +137,8 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
sitemap_generator (5.0.5)
builder
spring (1.3.2)
sprockets (2.12.3)
hike (~> 1.2)
@@ -178,6 +180,7 @@ DEPENDENCIES
rails_admin
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
sitemap_generator
spring
sqlite3
turbolinks
View
@@ -0,0 +1,15 @@
# Set the host name for URL creation
SitemapGenerator::Sitemap.default_host = "http://localhost:3000"
SitemapGenerator::Sitemap.create do
add news_index_path, :priority => 0.7, :changefreq => 'daily'
News.find_each do |item|
add news_path(item), :lastmod => item.updated_at
end
add events_path, :priority => 0.7, :changefreq => 'daily'
Event.find_each do |item|
add event_path(item), :lastmod => item.updated_at
end
end
View
BIN +693 Bytes public/sitemap.xml.gz
Binary file not shown.

0 comments on commit 56cad01

Please sign in to comment.