add categories
[web.git] / ralf / _includes / post-feed.html
diff --git a/ralf/_includes/post-feed.html b/ralf/_includes/post-feed.html
new file mode 100644 (file)
index 0000000..18959ed
--- /dev/null
@@ -0,0 +1,12 @@
+{% for post in include.posts limit:12 %}
+  <entry>
+    <title>{{ post.title | xml_escape }}</title>
+    <link href="{{ post.url | prepend: site.baseurl | prepend: site.url }}" />
+    <updated>{{ post.date | date_to_xmlschema }}</updated>
+    <id>{{ post.url | prepend: site.baseurl | prepend: site.url }}</id>
+    {% for cat in post.categories %}
+        <category term="{{ cat }}" label="{{ cat | capitalize }}"/>
+    {% endfor %}
+    <content type="html">{{ post.content | xml_escape }}</content>
+  </entry>
+{% endfor %}