mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
fixed rss content and added header information to rss link
This commit is contained in:
parent
1b7d35a7b8
commit
46f795fb88
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ html
|
||||||
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
||||||
= javascript_include_tag 'vendor/modernizr'
|
= javascript_include_tag 'vendor/modernizr'
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
|
= auto_discovery_link_tag(:rss, params.merge(format: :rss))
|
||||||
|
|
||||||
body
|
body
|
||||||
.row
|
.row
|
||||||
|
|
|
@ -8,7 +8,7 @@ xml.rss :version => "2.0" do
|
||||||
@papers.each do |doc|
|
@papers.each do |doc|
|
||||||
xml.item do
|
xml.item do
|
||||||
xml.title doc.name
|
xml.title doc.name
|
||||||
xml.description article.content[0, doc.content.length < 30 ? doc.content.length : 30]
|
xml.description truncate(doc.content, length: 768)
|
||||||
xml.pubDate doc.published_at.to_date.to_s(:rfc822)
|
xml.pubDate doc.published_at.to_date.to_s(:rfc822)
|
||||||
xml.link doc.url
|
xml.link doc.url
|
||||||
xml.guid doc.url
|
xml.guid doc.url
|
||||||
|
|
Loading…
Reference in a new issue