summaryrefslogtreecommitdiff
path: root/_site_build
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-01-01 21:16:29 +0000
committerdavidtsadler <davidtsadler@googlemail.com>2012-01-01 21:16:29 +0000
commitc8f60a4f4c8fab99eda2c3c8df3f655e3ba072f1 (patch)
tree6663dd68649cb49b31111005c42e449e61cb3447 /_site_build
parentec9aeab275f199a104a9d48b4a190ac5b507e615 (diff)
Add RSS feed.
Diffstat (limited to '_site_build')
-rw-r--r--_site_build/_includes/footer.html2
-rw-r--r--_site_build/_includes/head.html2
-rw-r--r--_site_build/rss.xml32
3 files changed, 35 insertions, 1 deletions
diff --git a/_site_build/_includes/footer.html b/_site_build/_includes/footer.html
index 70bd3c5..b165e1d 100644
--- a/_site_build/_includes/footer.html
+++ b/_site_build/_includes/footer.html
@@ -1,5 +1,5 @@
<footer>
<p>
- <small>Copyright &copy; 2011 by {{ site.author }}. All Rights Reserved.</small>
+ <small>Copyright &copy; {{ site.copyright_year }} by {{ site.author }}. All Rights Reserved.</small>
</p>
</footer>
diff --git a/_site_build/_includes/head.html b/_site_build/_includes/head.html
index 54d16d0..d83eb39 100644
--- a/_site_build/_includes/head.html
+++ b/_site_build/_includes/head.html
@@ -1,5 +1,7 @@
<meta charset="utf-8">
<title>{{ page.title }} - {{ site.title }}</title>
+<meta name="description" content="{{ site.description }}">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="/css/style.css?v=1">
+<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/rss.xml" title="{{ site.title }}">
<script src="/js/modernizr-2.0.6.min.js"></script>
diff --git a/_site_build/rss.xml b/_site_build/rss.xml
new file mode 100644
index 0000000..e5ef11f
--- /dev/null
+++ b/_site_build/rss.xml
@@ -0,0 +1,32 @@
+---
+layout: nil
+---
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ site.title }}</title>
+ <link>{{ site.url }}</link>
+ <atom:link href="{{ site.url }}/rss.xml" rel="self" type="application/rss+xml" />
+ <description>{{ site.description }}</description>
+ <copyright>Copyright {{ site.copyright_year }} by {{ site.author }}. All Rights Reserved.</copyright>
+ {% if site.email %}
+ <managingEditor>{{ site.email }} ({{ site.author }})</managingEditor>
+ <webMaster>{{ site.email }} ({{ site.author }})</webMaster>
+ {% endif %}
+ <pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z"}}</pubDate>
+ <lastBuildDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</lastBuildDate>
+ <ttl>1440</ttl>
+ {% for post in site.posts limit:site.max_recent_posts %}
+ <item>
+ <title>{{ post.title }}</title>
+ <link>{{ site.url }}{{ post.url }}</link>
+ <guid isPermaLink="true">{{ site.url}}{{ post.url}}</guid>
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
+ {% if site.email %}
+ <author>{{ site.email }} ({{ site.author }})</author>
+ {% endif %}
+ <description>{{ post.content | text_excerpt | xml_escape }}</description>
+ </item>
+ {% endfor %}
+ </channel>
+</rss>