summaryrefslogtreecommitdiff
path: root/app/views/sitemap/index.xml.erb
blob: 6cd84a43271fa07d1fedaa964beb38dc54e5971f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:image="http://www.sitemaps.org/schemas/sitemap-image/1.1"
  xmlns:video="http://www.sitemaps.org/schemas/sitemap-video/1.1">
<% @creations.find_each do |creation| %>
    <url>
      <loc><%= cake_url(creation) %></loc>
      <lastmod><%= creation.updated_at.strftime('%Y-%m-%dT%H:%M-06:00') %></lastmod>
      <priority>0.5</priority>
    </url>
<% end %>
<% @tutorials.find_each do |tutorial| %>
    <url>
      <loc><%= tutorial_url(tutorial) %></loc>
      <lastmod><%= tutorial.updated_at.strftime('%Y-%m-%dT%H:%M-06:00') %></lastmod>
      <priority>0.5</priority>
    </url>
<% end %>
</urlset>