diff options
| author | davidtsadler <davidtsadler@googlemail.com> | 2012-01-01 21:16:29 +0000 |
|---|---|---|
| committer | davidtsadler <davidtsadler@googlemail.com> | 2012-01-01 21:16:29 +0000 |
| commit | c8f60a4f4c8fab99eda2c3c8df3f655e3ba072f1 (patch) | |
| tree | 6663dd68649cb49b31111005c42e449e61cb3447 /_site_build/rss.xml | |
| parent | ec9aeab275f199a104a9d48b4a190ac5b507e615 (diff) | |
Add RSS feed.
Diffstat (limited to '_site_build/rss.xml')
| -rw-r--r-- | _site_build/rss.xml | 32 |
1 files changed, 32 insertions, 0 deletions
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> |
