forked from yinan-c/RSS-GPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.xml
29 lines (29 loc) · 1.16 KB
/
template.xml
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
28
29
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ feed.feed.title.replace('&', '&') }}</title>
<link>{{ feed.feed.link.replace('&', '&') }}</link>
{% for entry in append_entries %}
<item>
<title>{{ entry.title.replace('&', '&') }}</title>
<link>{{ entry.link.replace('&', '&') }}</link>
<guid>{{ entry.link.replace('&', '&') }}</guid>
<content:encoded><![CDATA[
{% if entry.summary %}<div> {{ entry.summary}} <div>{% endif %}
{{ entry.article }}
]]></content:encoded>
{% if entry.published %}<pubDate>{{ entry.published }}</pubDate>{% endif %}
{% if entry.updated %}<pubDate>{{ entry.updated }}</pubDate>{% endif %}
</item>{% endfor %}
{% for entry in existing_entries %}
<item>
<title>{{ entry.title.replace('&', '&') }}</title>
<link>{{ entry.link.replace('&', '&') }}</link>
<guid>{{ entry.link.replace('&', '&') }}</guid>
<content:encoded><![CDATA[
{{ entry.content[0].value }}
]]></content:encoded>
<pubDate>{{ entry.published }}</pubDate>
</item>{% endfor %}
</channel>
</rss>