Sha256: 27d8577e2ce2c77bc41d884298ec511b93c6dbf13fd630808563d5c9845fd8af

Contents?: true

Size: 652 Bytes

Versions: 11

Compression:

Stored size: 652 Bytes

Contents

xml.instruct! :xml, version: '1.0'
xml.rss version: '2.0' do
  xml.channel do
    xml.title current_site.the_title
    xml.description current_site.the_excerpt
    xml.link current_site.the_url

    current_site.the_contents.paginate(page: params[:page],
                                       per_page: current_site.front_per_page).decorate.each do |post|
      xml.item do
        xml.title post.the_title
        xml.description post.the_excerpt
        xml.pubDate post.the_created_at
        xml.upDate post.the_updated_at
        xml.link post.the_url
        xml.guid post.the_id
        xml.thumb post.the_thumb_url
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
camaleon_cms-2.9.0 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.8.3 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.8.2 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.8.1 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.8.0 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.7.5 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.7.4 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.7.3 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.7.2 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.7.1 app/views/camaleon_cms/default_theme/rss.rss.builder
camaleon_cms-2.7.0 app/views/camaleon_cms/default_theme/rss.rss.builder