mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
#14: fix dashs, remove resolution (as wrong field)
This commit is contained in:
parent
8cadcb4214
commit
18af85df81
1 changed files with 1 additions and 6 deletions
|
@ -11,7 +11,7 @@ xml.rss :version => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
|
|||
xml.title doc.name
|
||||
if !doc.content.blank?
|
||||
xml.description do
|
||||
xml.cdata! truncate(doc.content, length: 768)
|
||||
xml.cdata! truncate(doc.content.sub("------------------------------- ", ""), length: 768)
|
||||
end
|
||||
end
|
||||
if !doc.published_at.blank?
|
||||
|
@ -27,11 +27,6 @@ xml.rss :version => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
|
|||
xml.cdata! doc.paper_type
|
||||
end
|
||||
end
|
||||
if !doc.resolution.blank?
|
||||
xml.category do
|
||||
xml.cdata! doc.resolution
|
||||
end
|
||||
end
|
||||
xml.link doc.url
|
||||
xml.guid doc.url
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue