blob: 3521e33d98693b058b5188dded025bc918ecaae3 (
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"?>
{% 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.posts %}
<item>
<title>{{ post.title }}</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>
|