Sha256: ee80c450911444a2e830079ee15ba2ae26499b7f2ad1cd6a5c7d3c30ae38fed3

Contents?: true

Size: 422 Bytes

Versions: 26

Compression:

Stored size: 422 Bytes

Contents

xml.instruct!

xml.urlset "xmlns" => "http://www.google.com/schemas/sitemap/0.84" do
  xml.url do
    xml.loc "http://#{request.host}/"
    xml.lastmod Time.now.to_s(:w3c)
    xml.changefreq "always"
  end

  @pages.each do |page|
    xml.url do
      xml.loc "http://#{request.host}#{page.materialized_path}"
      xml.lastmod page.updated_at.to_date
      xml.changefreq "weekly"
      xml.priority 0.9
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spina-0.6.16 app/views/spina/sitemaps/show.xml.builder
spina-0.6.15 app/views/spina/sitemaps/show.xml.builder
spina-0.6.14 app/views/spina/sitemaps/show.xml.builder
spina-0.6.13 app/views/spina/sitemaps/show.xml.builder
spina-0.6.12 app/views/spina/sitemaps/show.xml.builder
spina-0.6.11 app/views/spina/sitemaps/show.xml.builder