Sha256: 2cb2112a11191d33e29af647453c3877a78ce4f7fa04a3fbc6335dc0834b9997

Contents?: true

Size: 398 Bytes

Versions: 78

Compression:

Stored size: 398 Bytes

Contents

xml.instruct! :xml, :version => '1.0', :encoding => 'UTF-8'

# create the urlset
xml.urlset :xmlns => 'http://www.sitemaps.org/schemas/sitemap/0.9' do
  @pages.each do |page|
    xml.url do
      if page.url_name == Spud::Cms.root_page_name
        xml.loc root_url()
      else
        xml.loc page_url(:id => page.url_name)
      end
      xml.lastmod page.updated_at.xmlschema
    end
  end
end

Version data entries

78 entries across 78 versions & 2 rubygems

Version Path
tb_cms-1.3.6 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.3.5 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.3.3 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.3.2 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.3.1 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.3.0 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.3.beta1 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.2.3 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.2.2 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.2.1 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.2.0 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.2.0.beta3 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.2.0.beta1 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.1.5 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.1.4 app/views/cms/sitemaps/show.xml.builder
spud_cms-1.0.2 app/views/spud/cms/sitemaps/show.xml.builder
spud_cms-1.0.1 app/views/spud/cms/sitemaps/show.xml.builder
spud_cms-1.0.0 app/views/spud/cms/sitemaps/show.xml.builder
tb_cms-1.1.3 app/views/cms/sitemaps/show.xml.builder
tb_cms-1.1.2 app/views/cms/sitemaps/show.xml.builder