-
Notifications
You must be signed in to change notification settings - Fork 2
/
feed.json
33 lines (33 loc) · 1.27 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
32
33
---
layout: null
---
{
"version": "https://jsonfeed.org/version/1",
"title": "{{ site.title | xml_escape }}",
"home_page_url": "{{ site.baseurl | absolute_url }}",
"feed_url": "{{ "/feed.json" | absolute_url }}",
"description": {{ site.description | jsonify }},
"icon": "{{ site.icon | absolute_url }}",
"favicon": "{{ "/favicon.ico" | absolute_url }}",
"expired": false,
"items": [
{% for post in site.posts limit: 15 %}
{% unless post.draft %}
{% capture content_text %}{{ post.content | strip_html }}{% endcapture %}
{% capture content_html %}{{ post.content | markdownify }}{% endcapture %}
{
"id": "{{ post.url | absolute_url | sha1 }}",
{% if post.title != "" %}"title": {{ post.title | jsonify }},{% endif %}
"content_text": {{ content_text | jsonify }},
"content_html": {{ content_html | jsonify }},
"url": "{{ post.url | absolute_url}}",
"date_published": "{{ post.date | date_to_xmlschema }}",
"date_modified": "{{ post.date | date_to_xmlschema }}",
"author": {
"name": "{{ post.author }}"
}
}{% if forloop.last == false %},{% endif %}
{% endunless %}
{% endfor %}
]
}