Sha256: c15fb5d3c2578cbfd3cc0aa09d42e19fd11deec581ba8c4971fa911bf4e97c04

Contents?: true

Size: 655 Bytes

Versions: 4

Compression:

Stored size: 655 Bytes

Contents

xml.instruct! :xml, version: '1.0', encoding: 'UTF-8'
xml.instruct! 'xml-stylesheet', type: 'text/css', href: url_for('/stylesheets/rss.css')

xml.rss 'version' => '2.0', 'xmlns:dc' => 'http://purl.org/dc/elements/1.1/',
        'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
  xml.channel do
    xml.title feed_title
    xml.link this_blog.base_url
    xml.atom :link, href: request.url, rel: 'self', type: 'application/rss+xml'
    xml.language this_blog.lang.tr('_', '-').downcase
    xml.ttl '40'
    xml.description this_blog.blog_subtitle

    @articles.each do |item|
      render 'shared/rss_item_article', xm: xml, item: item
    end
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
publify_core-9.1.0 app/views/articles/index_rss_feed.rss.builder
publify_core-9.1.0 app/views/authors/show_rss_feed.rss.builder
publify_core-9.0.1 app/views/articles/index_rss_feed.rss.builder
publify_core-9.0.1 app/views/authors/show_rss_feed.rss.builder