Sha256: d7ebbcd09056ab3a8e55d9eaf43128ba2400584ff9a598587a217ab6209bb852

Contents?: true

Size: 683 Bytes

Versions: 5

Compression:

Stored size: 683 Bytes

Contents

xml.instruct!
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do

  xml.url do
    xml.loc current_site_url
    xml.priority 1.0
  end

  @pages.each do |page|
    if not page.index_or_not_found?
      if page.templatized?
        page.content_type.entries.visible.each do |c|
          xml.url do
            xml.loc page_url(page, { :content => c })
            xml.lastmod c.updated_at.to_date.to_s('%Y-%m-%d')
            xml.priority 0.9
          end
        end
      else
        xml.url do
          xml.loc page_url(page)
          xml.lastmod page.updated_at.to_date.to_s('%Y-%m-%d')
          xml.priority 0.9
        end
      end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc12 app/views/locomotive/public/sitemaps/show.xml.builder
locomotive_cms-2.0.0.rc11 app/views/locomotive/public/sitemaps/show.xml.builder
locomotive_cms-2.0.0.rc10 app/views/locomotive/public/sitemaps/show.xml.builder
locomotive_cms-2.0.0.rc9 app/views/locomotive/public/sitemaps/show.xml.builder
locomotive_cms-2.0.0.rc8 app/views/locomotive/public/sitemaps/show.xml.builder