Sha256: 736fa55b19dff0cd0915eff8094fa569bd11085c8729a00da1a75cbca32e96e8

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

xml.instruct!
xml.sitemapindex "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
  @pages.each_with_index do |page, i|
    xml.sitemap do
      xml.loc url_for(:host => request.host, :page => i + 1)
      if page.last_mod
        xml.lastmod page.last_mod.to_date
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dynamic_sitemaps-1.0.4 app/views/sitemaps/index.builder