From 763321827976fe4e8434c3e2a545adc731462d87 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 11 Jun 2015 23:06:14 -0400 Subject: [PATCH] Add an atom feed --- _layouts/default.html | 2 ++ feed.xml | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 feed.xml diff --git a/_layouts/default.html b/_layouts/default.html index ee6ef26..e75712c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -13,6 +13,8 @@ +
diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000..3a841a8 --- /dev/null +++ b/feed.xml @@ -0,0 +1,21 @@ +--- +--- + + + + {{ site.name | xml_escape }} + {% if site.description %}{{ site.description | xml_escape }}{% endif %} + {{ site.url }} + + {% for post in site.posts limit:10 %} + + {{ post.title | xml_escape }} + {{ post.author | xml_escape }} + {{ post.content | xml_escape }} + {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} + {{ site.url }}{{ post.url }} + {{ site.url }}{{ post.url }} + + {% endfor %} + +