-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.json
43 lines (43 loc) · 1.2 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
34
35
36
37
38
39
40
41
42
43
---
layout: none
sitemap:
exclude: 'yes'
---
{
"version": "https://jsonfeed.org/version/1.1",
"title": "{{ site.feed-title }}",
"home_page_url": "{{ site.url }}",
"feed_url": "{{ "/feed.json" | absolute_url }}",
"author": {
"url": "{{ site.url }}",
"name": "{{ page.author }}",
"avatar": "{{ site.avatar }}"
},
"icon": "{{ "/apple-touch-icon.png" | absolute_url }}",
"favicon": "{{ "/favicon-32x32.png" | absolute_url }}",
"items": [
{% for post in site.posts %}
{
"title": {{ post.title | jsonify }},
"date_published": "{{ post.date | date_to_xmlschema }}",
{% if post.updated %}
"date_modified": "{{ post.updated | date_to_xmlschema }}",
{% endif %}
"id": "{{ post.url | absolute_url }}",
"url": "{{ post.url | absolute_url }}",
"author": {
"name": "Fredrik Frodlund"
},
"summary": {{ post.description | jsonify }},
{% if post.tags %}
"tags": [
{% for tag in post.tags %}
"{{ tag }}"{% if forloop.last == false %},{% endif %}
{% endfor %}
],
{% endif %}
"content_html": {{ post.content | jsonify }}
}{% if forloop.last == false %},{% endif %}
{% endfor %}
]
}