add RSS category、content

This commit is contained in:
junyi 2026-08-14 07:53:18 +00:00
parent 9ffe37a3e2
commit a56e67a446
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.rss :version => "2.0", "xmlns:content" => "http://purl.org/rss/1.0/modules/content/" do
xml.channel do
xml.title @bf.title
xml.link "/xhr/announcements/rssfeed/#{@bf.uid}.rss"
@ -10,6 +10,8 @@ xml.rss :version => "2.0" do
xml.description announcement.subtitle
xml.pubDate announcement.created_at.to_s(:rfc822)
xml.link page_for_bulletin(announcement)
xml.category announcement.category.title
xml.content(:encoded, announcement.text)
end
end
end