summaryrefslogtreecommitdiffstats
path: root/templates/index.xml
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.xml')
-rw-r--r--templates/index.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/index.xml b/templates/index.xml
new file mode 100644
index 0000000..ecf618e
--- /dev/null
+++ b/templates/index.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+{% set base = "https://soap.coffee/~lthms" %}
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Thomas Letan’s Blog</title>
+ <link>{{ base }}</link>
+ <description>
+ Blogposts in Thomas Letan’s Website
+ </description>
+ <atom:link href="https://soap.coffee/~lthms/posts/index.xml" rel="self" type="application/rss+xml" />
+ {% for article in contents %}
+ <item>
+ <title>{{ article.title | striptags }}</title>
+ <link>{{ base }}{{ article.url }}</link>
+ <guid>{{ base }}{{ article.url }}</guid>
+ <pubDate>{{ article.date_str }}</pubDate>
+ <description>
+ {% if article.contents %}
+ {{ article.contents | escape }}
+ {% endif %}
+ </description>
+ </item>
+ {% endfor %}
+ </channel>
+</rss>