!!! XML
%rss{"version" => '2.0', 
     "xmlns:content" => 'http://purl.org/rss/1.0/modules/content/',
     "xmlns:atom" => 'http://www.w3.org/2005/Atom'}
  %channel
    %title #{@page.metadata.title}
    %link #{@base_url}/blog
    %atom:link{href: "#{@base_url}/rss", rel: 'self', type: 'application/rss+xml'}/
    %description #{@page.metadata.description}
    %language en-gb
    %lastBuildDate #{settings.articles.values.first.metadata.date.rfc822}
    %docs http://cyber.law.harvard.edu/rss/rss.html
    - settings.articles.each do |article_name, article|
      %item
        %title #{article.metadata.title}
        %description #{article.metadata.summary}
        %pubDate #{article.metadata.date.rfc822}
        %guid{isPermaLink: 'true'} #{@base_url}/blog/#{article.metadata.shortname}
        %content:encoded <![CDATA[#{Kramdown::Document.new(article.content, :absolute_urls => true, :base_url => base_url(), :smart_quotes => ['apos','apos','quot','quot']).to_html }]]>
!!! XML
%rss{"version" => '2.0', 
     "xmlns:content" => 'http://purl.org/rss/1.0/modules/content/',
     "xmlns:atom" => 'http://www.w3.org/2005/Atom'}
  %channel
    %title #{@page.metadata.title}
    %link #{@base_url}/blog
    %atom:link{href: "#{@base_url}/rss", rel: 'self', type: 'application/rss+xml'}/
    %description #{@page.metadata.description}
    %language en-gb
    %lastBuildDate #{settings.articles.values.first.metadata.date.rfc822}
    %docs http://cyber.law.harvard.edu/rss/rss.html
    - settings.articles.each do |article_name, article|
      %item
        %title #{article.metadata.title}
        %description #{article.metadata.summary}
        %pubDate #{article.metadata.date.rfc822}
        %guid{isPermaLink: 'true'} #{@base_url}/blog/#{article.metadata.shortname}
        %content:encoded <![CDATA[#{Kramdown::Document.new(article.content, :absolute_urls => true, :base_url => base_url(), :smart_quotes => ['apos','apos','quot','quot'], :coderay_line_numbers => nil).to_html }]]>
Disable CodeRay line numbers in RSS feed.
Disable CodeRay line numbers in RSS feed.
