Sha256: c9b806d25a88890fc438fce254cd2ca1fa53f8ca100bf2e36730c4f243da1d1b

Contents?: true

Size: 388 Bytes

Versions: 49

Compression:

Stored size: 388 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
  @posts.each do |post|
    xml.url do
      if post.is_news
        xml.loc news_post_url(post.url_name)
      else
        xml.loc blog_post_url(post.url_name)
      end 
      xml.lastmod post.published_at.xmlschema
    end
  end
end

Version data entries

49 entries across 49 versions & 2 rubygems

Version Path
spud_blog-1.0.2 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-1.0.1 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-1.0.0 app/views/spud/blog/sitemaps/show.xml.builder
tb_blog-1.1.3 app/views/blog/sitemaps/show.xml.builder
tb_blog-1.1.2 app/views/blog/sitemaps/show.xml.builder
tb_blog-1.1.1 app/views/blog/sitemaps/show.xml.builder
tb_blog-1.1.0 app/views/blog/sitemaps/show.xml.builder
spud_blog-1.0.0.rc1.1 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-1.0.0.rc1 app/views/spud/blog/sitemaps/show.xml.builder
tb_blog-1.0.4 app/views/spud/blog/sitemaps/show.xml.builder
tb_blog-1.0.3 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-0.9.11 app/views/spud/blog/sitemaps/show.xml.builder
tb_blog-1.0.2 app/views/spud/blog/sitemaps/show.xml.builder
tb_blog-1.0.1 app/views/spud/blog/sitemaps/show.xml.builder
tb_blog-1.0 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-0.9.10 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-0.9.9 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-0.9.8 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-0.9.7 app/views/spud/blog/sitemaps/show.xml.builder
spud_blog-0.9.5 app/views/spud/blog/sitemaps/show.xml.builder