diff options
Diffstat (limited to 'atom.xml')
-rw-r--r-- | atom.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/atom.xml b/atom.xml new file mode 100644 index 0000000..bea3d0f --- /dev/null +++ b/atom.xml @@ -0,0 +1,27 @@ +--- +--- +<?xml version="1.0" encoding="utf-8"?> +{% for page in site.pages %} + {% if page.id == "index" %} + {% assign index_post = page %} + {% endif %} +{% endfor %} +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ site.title }}</title> + <description>{{ index_post.title }}</description> + <language>en-us</language> + <link>https://{{ site.domain }}/atom.xml</link> + <atom:link href="https://{{ site.domain }}/atom.xml" rel="self" type="application/rss+xml" /> + </channel> + {% for post in site.items %} + <item> + <title>{{ post.title | smartify | xml_escape }}</title> + <guid>{{ post.id }}</guid> + <link>{{ post.url }}</link> + <pubDate>{{ post.date | date_to_xmlschema }}</pubDate> + <description>{{ post.content | markdownify | xml_escape }}</description> + </item> + {% endfor %} +</rss> + |