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/_includes/custom') 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 From e1d680ff112952d88f9b9f5fd92d33f9a9b739db Mon Sep 17 00:00:00 2001 From: Mikkel Hoegh Date: Thu, 6 Oct 2011 11:54:03 +0200 Subject: Fixed duplicate title. --- .themes/classic/source/_includes/custom/category_feed.xml | 1 - 1 file changed, 1 deletion(-) (limited to '.themes/classic/source/_includes/custom') diff --git a/.themes/classic/source/_includes/custom/category_feed.xml b/.themes/classic/source/_includes/custom/category_feed.xml index 616642fe..f47c5536 100644 --- a/.themes/classic/source/_includes/custom/category_feed.xml +++ b/.themes/classic/source/_includes/custom/category_feed.xml @@ -4,7 +4,6 @@ layout: nil - {{ page.title | xml_escape }} | {{ site.title | xml_escape }} <![CDATA[{{ page.title }} | {{ site.title }}]]> -- cgit v1.2.1