diff options
Diffstat (limited to 'templates/index.xml')
-rw-r--r-- | templates/index.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/index.xml b/templates/index.xml new file mode 100644 index 0000000..4dc3bba --- /dev/null +++ b/templates/index.xml @@ -0,0 +1,27 @@ +<?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 %} + {% if article.date %} + <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> + {% endif %} + {% endfor %} + </channel> +</rss> |