Skip to content

Commit

Permalink
Merge branch 'hotfix/sitemap'
Browse files Browse the repository at this point in the history
* hotfix/sitemap:
  Add sitemap
  • Loading branch information
Gustavo Cunha committed Oct 27, 2014
2 parents 42df76b + 271b7d1 commit c427b2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/home/index.xml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc><%= root_url %></loc>
<changefreq>daily</changefreq>
</url>
</urlset>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Rails.application.routes.draw do
root to: 'home#index'
get 'sitemap', to: "home#index", defaults: { format: :xml }
end

0 comments on commit c427b2a

Please sign in to comment.