-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
feed.json
44 lines (43 loc) · 1.57 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
44
---
layout: null
---
{
"version": "https://jsonfeed.org/version/1.1",
"title": "{{ site.title }}",
"home_page_url": "{{ site.url }}",
"feed_url": "{{ site.feeds.json | absolute_url }}",
"description": "{{ site.description }}",
"icon": "{% link_absolute {{ site.logo | img_url }} %}",
"favicon": "{{ site.favicon | absolute_url }}",
"expired": false,
"language": "en-US",
"authors": [
{
"name": "{{ site.author.name }}",
"url": "{{ site.url }}",
"avatar": "{% link_absolute {{ site.author.avatar | img_url }} %}"
}
],
"items": [
{% for post in site.posts limit: site.feeds.limit %}
{
"id": "{{ post.url | absolute_url }}",
"url": "{{ post.url | absolute_url }}",
{% if post.subtitle %}
{% assign title = post.title | append: ": " | append: post.subtitle %}
{% else %}
{% assign title = post.title %}
{% endif %}
"title": {{ title | jsonify }},
"date_published": "{{ post.date | date_to_xmlschema }}",
"date_modified": "{{ post.date-updated | default: post.date | date_to_xmlschema }}",
"summary": {{ post.excerpt | jsonify }},
"tags": [
{% for tag in post.tags %}"{{ tag }}",{% endfor %}
{% for category in post.categories %}"{{ category }}"{% endfor %}
],
"content_html": {{ post.content | jsonify }}
}{% if forloop.last == false %},{% endif %}
{% endfor %}
]
}