m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/rss.xml.erb
diff options
context:
space:
mode:
Diffstat (limited to 'src/rss.xml.erb')
-rw-r--r--src/rss.xml.erb23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/rss.xml.erb b/src/rss.xml.erb
new file mode 100644
index 0000000..6f14b86
--- /dev/null
+++ b/src/rss.xml.erb
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/css" href="rss.css" ?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+
+<channel>
+<title>Martin's Blog</title>
+<description>Random writings and notes from Martin's keyboard to your screen.</description>
+<language>en-us</language>
+<link>http://m-chrzan.xyz/rss.xml</link>
+<atom:link href="http://m-chrzan.xyz/rss.xml" rel="self" type="application/rss+xml" />
+
+<% posts.each do |post| %>
+ <item>
+ <title><%= post['title'] %></title>
+ <guid>http://m-chrzan.xyz/<%= post['html_filename'] %></guid>
+ <pubDate><%= post['date'] %></pubDate>
+ <description><![CDATA[
+ <%= post['content'] %>
+ ]]></description>
+ </item>
+<% end %>
+</channel>
+</rss>