forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.art
70 lines (56 loc) · 1.81 KB
/
atom.art
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<generator>RSSHub</generator>
<webMaster>i@html.love</webMaster>
<language>zh-cn</language>
<id>{{ id || link }}</id>
<title><![CDATA[{{@ title || 'RSSHub' }}]]></title>
{{ if subtitle }}
<subtitle><![CDATA[{{@ subtitle }}]]></subtitle>
{{ /if }}
<updated>{{ updated }}</updated>
<link href="{{ link }}" />
<author>
<name><![CDATA[{{@ author || 'RSSHub' }}]]></name>
</author>
{{if contributor }}
{{ each contributor }}
<contributor>
<name><![CDATA[{{@ $value }}]]></name>
</contributor>
{{ /each }}
{{ /if }}
{{ if icon }}
<icon>{{ icon }}</icon>
{{ /if }}
{{ if logo }}
<logo>{{ logo }}</logo>
{{ /if }}
{{ each item $e }}
<entry>
<id>{{ $e.id || $e.link }}</id>
<title><![CDATA[{{@ $e.title }}]]></title>
<published>{{ $e.published || $e.updated }}</published>
<updated>{{ $e.updated }}</updated>
{{ if $e.author }}
<author>
<name><![CDATA[{{@ $e.author || 'RSSHub' }}]]></name>
</author>
{{ /if }}
<link href="{{ $e.link }}" />
{{ if $e.summary }}
<summary type="html"><![CDATA[{{@ $e.summary }}]]></summary>
{{ /if }}
{{ if $e.content }}
<content type="html" src="{{ $e.link }}"><![CDATA[{{@ $e.content.html || $e.content.text }}]]></content>
{{ else if $e.description }}
<content type="html" src="{{ $e.link }}"><![CDATA[{{@ $e.description }}]]></content>
{{ /if }}
{{ if $e.category }}
{{ each $e.category $c }}
<category term="{{ $c }}"></category>
{{ /each }}
{{ /if }}
</entry>
{{ /each }}
</feed>