From 66916f57a71b3d7aeb1465b049ed701fbf65a68c Mon Sep 17 00:00:00 2001 From: Mikkel Hoegh Date: Wed, 5 Oct 2011 00:24:13 +0200 Subject: First attempt at creating per-category Atom feeds. --- .../source/_includes/custom/category_feed.xml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .themes/classic/source/_includes/custom/category_feed.xml (limited to '.themes/classic/source') diff --git a/.themes/classic/source/_includes/custom/category_feed.xml b/.themes/classic/source/_includes/custom/category_feed.xml new file mode 100644 index 00000000..616642fe --- /dev/null +++ b/.themes/classic/source/_includes/custom/category_feed.xml @@ -0,0 +1,28 @@ +--- +layout: nil +--- + + + + {{ page.title | xml_escape }} | {{ site.title | xml_escape }} + <![CDATA[{{ page.title }} | {{ site.title }}]]> + + + {{ site.time | date_to_xmlschema }} + {{ site.url }}/ + + + {% if site.email %}{% endif %} + + Octopress + + {% for post in site.categories[page.category] limit: 5 %} + + <![CDATA[{{ post.title | cdata_escape }}]]> + + {{ post.date | date_to_xmlschema }} + {{ site.url }}{{ post.id }} + + + {% endfor %} + -- cgit v1.2.1