tangled
alpha
login
or
join now
dunkirk.sh
/
zera
5
fork
atom
the home site for me: also iteration 3 or 4 of my site
5
fork
atom
overview
issues
pulls
pipelines
feat: add full rss
dunkirk.sh
6 days ago
3d7baa57
82db0f53
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+73
2 changed files
expand all
collapse all
unified
split
templates
atom.xml
rss.xml
+30
templates/atom.xml
···
1
1
+
<?xml version="1.0" encoding="UTF-8"?>
2
2
+
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
3
3
+
<title>{{ config.title }}{% if section.title %} – {{ section.title }}{% endif %}</title>
4
4
+
<link rel="self" type="application/atom+xml" href="{{ feed_url | safe }}"/>
5
5
+
<link rel="alternate" type="text/html" href="{% if section %}{{ section.permalink | safe }}{% else %}{{ config.base_url | safe }}{% endif %}"/>
6
6
+
<id>{% if section %}{{ section.permalink | safe }}{% else %}{{ config.base_url | safe }}{% endif %}</id>
7
7
+
<updated>{{ last_updated | date(format="%+") }}</updated>
8
8
+
<subtitle>{{ config.description }}</subtitle>
9
9
+
{% if config.extra.author %}
10
10
+
<author><name>{{ config.extra.author }}</name></author>
11
11
+
{% endif %}
12
12
+
{% for page in pages %}
13
13
+
<entry>
14
14
+
<title>{{ page.title }}</title>
15
15
+
<link rel="alternate" type="text/html" href="{{ page.permalink | safe }}"/>
16
16
+
<id>{{ page.permalink | safe }}</id>
17
17
+
<published>{{ page.date | date(format="%+") }}</published>
18
18
+
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
19
19
+
{% if page.taxonomies.tags %}
20
20
+
{% for tag in page.taxonomies.tags %}
21
21
+
<category term="{{ tag }}"/>
22
22
+
{% endfor %}
23
23
+
{% endif %}
24
24
+
{% if page.summary %}
25
25
+
<summary type="html"><![CDATA[{{ page.summary | safe }}]]></summary>
26
26
+
{% endif %}
27
27
+
<content type="html"><![CDATA[{{ page.content | safe }}]]></content>
28
28
+
</entry>
29
29
+
{% endfor %}
30
30
+
</feed>
+43
templates/rss.xml
···
1
1
+
<?xml version="1.0" encoding="UTF-8"?>
2
2
+
<rss version="2.0"
3
3
+
xmlns:atom="http://www.w3.org/2005/Atom"
4
4
+
xmlns:content="http://purl.org/rss/1.0/modules/content/"
5
5
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
6
6
+
>
7
7
+
<channel>
8
8
+
<title>{{ config.title | escape_xml }}{% if section.title %} – {{ section.title | escape_xml }}{% endif %}</title>
9
9
+
<link>{% if section %}{{ section.permalink | safe }}{% else %}{{ config.base_url | safe }}{% endif %}</link>
10
10
+
<description>{{ config.description | default(value="") | escape_xml }}</description>
11
11
+
<language>{{ lang }}</language>
12
12
+
<generator>Zola</generator>
13
13
+
<atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
14
14
+
<lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S +0000") }}</lastBuildDate>
15
15
+
{% for page in pages %}
16
16
+
<item>
17
17
+
<title>{{ page.title | escape_xml }}</title>
18
18
+
<link>{{ page.permalink | safe }}</link>
19
19
+
<guid isPermaLink="true">{{ page.permalink | safe }}</guid>
20
20
+
<pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S +0000") }}</pubDate>
21
21
+
{% if page.updated %}
22
22
+
<dc:date>{{ page.updated | date(format="%Y-%m-%dT%H:%M:%SZ") }}</dc:date>
23
23
+
{% endif %}
24
24
+
{% if config.extra.author %}
25
25
+
<dc:creator>{{ config.extra.author | escape_xml }}</dc:creator>
26
26
+
{% endif %}
27
27
+
{% if page.taxonomies.tags %}
28
28
+
{% for tag in page.taxonomies.tags %}
29
29
+
<category>{{ tag | escape_xml }}</category>
30
30
+
{% endfor %}
31
31
+
{% endif %}
32
32
+
<description>
33
33
+
{% if page.summary %}
34
34
+
{{ page.summary | escape_xml }}
35
35
+
{% else %}
36
36
+
{{ page.content | truncate(length=500) | striptags | escape_xml }}
37
37
+
{% endif %}
38
38
+
</description>
39
39
+
<content:encoded><![CDATA[{{ page.content | safe }}]]></content:encoded>
40
40
+
</item>
41
41
+
{% endfor %}
42
42
+
</channel>
43
43
+
</rss>