Sha256: 2a0a9b53458c73fc492d33d09f35fbfb8c1ffe21891781e42294321a01ef3aa2

Contents?: true

Size: 806 Bytes

Versions: 14

Compression:

Stored size: 806 Bytes

Contents

xml.instruct!
 
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
# homepage
    xml.url do
      xml.loc         root_path(:only_path => false)
      #w3c formatted time
      time = File.new("#{Rails.root.to_s}/app/views/nodes/home.html.erb").mtime
      xml.lastmod     "#{time.strftime("%Y-%m-%dT%H:%M:%S")}#{time.strftime("%z")[0..2]}:#{time.strftime("%z")[3..4]}"
      xml.changefreq  "daily"
      xml.priority    1
    end

# nodes
  @nodes.each do |node|
    xml.url do
      xml.loc         node_path(node,:only_path => false)
      #w3c formatted time
      time = node.updated_at
      xml.lastmod     "#{time.strftime("%Y-%m-%dT%H:%M:%S")}#{time.strftime("%z")[0..2]}:#{time.strftime("%z")[3..4]}"
      xml.changefreq  "daily"
      xml.priority    1
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
noodall-ui-0.4.11 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.10 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.9 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.8 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.7 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.3.20 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.6 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.3.19 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.5 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.4 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.1 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.4.0 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.3.17 app/views/noodall/nodes/sitemap.xml.rxml
noodall-ui-0.3.16 app/views/noodall/nodes/sitemap.xml.rxml