summaryrefslogtreecommitdiffstats
path: root/templates/index.xml
blob: 4dc3bbaf4f5cf621f4bd5577dcdaf0268ed0a68a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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>