Style RSS feed
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
xml.instruct!(:xml, version: "2.0", encoding: "utf-8")
|
||||
xml.instruct! "xml-stylesheet", {:href=>"/assets/style.xslt", :type=>"text/xsl"}
|
||||
|
||||
xml.channel do |channel|
|
||||
channel.title "Daniel Nitsikopoulos"
|
||||
channel.description "The RSS feed for https://dnitza.com"
|
||||
channel.description "The personal blog of Daniel Nitsikopoulos, software engineer from Canberra, ACT"
|
||||
channel.link "https://dnitza.com"
|
||||
channel.name "dnitza.com"
|
||||
channel.lastBuildDate Time.now.rfc2822
|
||||
channel.pubDate Time.now.rfc2822
|
||||
channel.ttl 1800
|
||||
@@ -13,6 +15,7 @@ xml.channel do |channel|
|
||||
item.description do |desc|
|
||||
desc.cdata! post.feed_content
|
||||
end
|
||||
item.link(post.permalink)
|
||||
item.guid(post.slug, isPermaLink: true)
|
||||
item.pubDate post.machine_published_at
|
||||
end
|
||||
|
@@ -0,0 +1,2 @@
|
||||
xml.instruct!
|
||||
xml << yield
|
Reference in New Issue
Block a user