-
Notifications
You must be signed in to change notification settings - Fork 4
/
feed.json
25 lines (25 loc) · 881 Bytes
/
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
---
layout: null
---
{% assign posts = site.directory %}
{
"version": "https://jsonfeed.org/version/1",
"title": {{ site.name | smartify | jsonify }},
{% if site.description %}"description": {{ site.description | smartify | jsonify }},{% endif %}
"home_page_url": "{{ site.url }}/",
"feed_url": "{{ site.url }}/feed.json",
"expired": false,
"items": [
{% for post in posts %}
{
"id": "{{ post.id }}",
"title": {{ post.title | smartify | jsonify }},
"content_html": {{ post.content | jsonify }},
"url": "{{ site.url }}{{ post.url }}",
"summary": {{ post.excerpt | smartify | jsonify }},
"date_published": "{{ post.date }}"
{% comment %}"author": "{{ post.author }}"{% endcomment %}
}{% unless forloop.last == true %},{% endunless %}
{% endfor %}
]
}