-
Notifications
You must be signed in to change notification settings - Fork 14
/
feed.json
31 lines (31 loc) · 1.42 KB
/
feed.json
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
---
layout: null
---
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ site.title | xml_escape }}",
"home_page_url": "{{ "/" | absolute_url }}",
"feed_url": "{{ "/feed.json" | absolute_url }}",
"description": {{ site.description | jsonify }},
"icon": "{{ "/favicon.png" | absolute_url }}",
"favicon": "{{ "/favicon.ico" | absolute_url }}",
"expired": false,
"items": [
{% for page in site.documents %}
{
"id": "{{ site.baseurl }}{{ page.url | sha1 }}",
"title": {{ page.title | jsonify }},
"summary": {{ page.usage | jsonify }},
"content_text": {{ page.content | strip_html | jsonify }},
"content_html": {{ page.content | strip_newlines | jsonify }},
{% if page.preview-image.size > 1 %}"image": {{ page.preview-image | jsonify }},{% endif %}
{% if page.tags.size > 1 %}"tags": {{ page.tags | jsonify }},{% endif %}
{% if page.last-modified.size > 1 %}"date_modified": "{{ page.last-modified | date_to_xmlschema }}",{% endif %}
{% if page.excerpt.size > 1 %}"excerpt": {{ page.excerpt | jsonify }},{% endif %}
{% if page.output.size > 1 %}"output": {{ page.output | jsonify }},{% endif %}
"url": "{{ site.baseurl }}{{ page.url }}.html",
"used": "{{ page.resource }}"
}{% if forloop.last == false %},{% endif %}
{% endfor %}
]
}