forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson.art
31 lines (31 loc) · 1.13 KB
/
json.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
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ title || 'RSSHub' }}",
"home_page_url": "{{ link || 'https://github.com/DIYgod/RSSHub' }}",
"description": "{{ description || title }} - Made with love by RSSHub(https://github.com/DIYgod/RSSHub)",
"author": {
"name": "{{@ author || 'RSSHub' }}"
},
"items": [
{{each item}}
{
"id": "{{ $value.guid || $value.link }}",
"url": "{{ $value.link }}",
"author": {
"name": "{{ $value.author }}"
},
"external_url": "",
"title": "{{ $value.title }}",
"content_html": "<%= ($value.content && $value.content.html) || '' %>",
"content_text": "<%= ($value.content && $value.content.text) || '' %>",
"summary": "{{ $value.description }}",
"image": "{{ $value.image }}",
"banner_image": "",
"date_published": "{{ $value.pubDate }}",
"date_modified": "",
"tags": [],
"attachments": []
}{{ if $index !== item.length - 1}},{{ /if}}
{{ /each }}
]
}