aboutsummaryrefslogtreecommitdiff
path: root/_pages/atom.md
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-03 20:33:34 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-03 20:38:59 +0300
commitaebe1485ea7b1ce6c447554772e21e6487d70934 (patch)
treeb08139b3a4be17b345502ef07c7df326a8e65db9 /_pages/atom.md
parent6a8b81baa1f6d210e62cc09d45b353debb838ff2 (diff)
downloadpopov.link-aebe1485ea7b1ce6c447554772e21e6487d70934.tar.xz
popov.link-aebe1485ea7b1ce6c447554772e21e6487d70934.zip
RSS template
Signed-off-by: Valentin Popov <valentineus@gmail.com>
Diffstat (limited to '_pages/atom.md')
-rw-r--r--_pages/atom.md54
1 files changed, 54 insertions, 0 deletions
diff --git a/_pages/atom.md b/_pages/atom.md
new file mode 100644
index 0000000..50c01d3
--- /dev/null
+++ b/_pages/atom.md
@@ -0,0 +1,54 @@
+---
+layout: null
+permalink: "/atom.xml"
+sidebar: false
+---
+
+<?xml version="1.0" encoding="utf-8"?>
+
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <!-- Identifiers and references -->
+ <link href="{{ site.rss | absolute_url | xml_escape }}" rel="self" type="application/atom+xml" />
+ <link href="{{ site.url | xml_escape }}" rel="alternate" type="text/html" />
+ <id>{{ site.url | xml_escape }}</id>
+
+ <!-- Description and name -->
+ <icon>{{ "/assets/favicon-32x32.png" | absolute_url | xml_escape }}</icon>
+ <title>{{ site.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
+ <subtitle>{{ site.description | smartify | strip_html | normalize_whitespace | xml_escape }}</subtitle>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+
+ <!-- Author -->
+ <author>
+ <email>{{ site.author.email | xml_escape }}</email>
+ <name>{{ site.author.name | xml_escape }}</name>
+ <uri>{{ site.author.url | xml_escape }}</uri>
+ </author>
+
+ {% for node in site.posts %}
+ <!-- Full size record -->
+ <entry>
+ <!-- Identifiers and references -->
+ <link href="{{ node.url | absolute_url | xml_escape }}" rel="alternate" type="text/html" />
+ <id>{{ node.url | absolute_url | xml_escape }}</id>
+
+ <!-- Description and name -->
+ <title>{{ node.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
+ <summary>{{ node.description | smartify | strip_html | normalize_whitespace | xml_escape }}</summary>
+ <updated>{{ node.latest_update | default: node.date | date_to_xmlschema }}</updated>
+ <published>{{ node.date | date_to_xmlschema }}</published>
+
+ <!-- Author -->
+ <author>
+ <email>{{ site.author.email | xml_escape }}</email>
+ <name>{{ site.author.name | xml_escape }}</name>
+ <uri>{{ site.author.url | xml_escape }}</uri>
+ </author>
+
+ <!-- Content -->
+ <content type="html" xml:base="{{ node.url | absolute_url | xml_escape }}">
+ {{ node.content | strip | strip_newlines | xml_escape }}
+ </content>
+ </entry>
+ {% endfor %}
+</feed>