generated from CollectionBuilder/collectionbuilder-sa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.json
30 lines (29 loc) · 1.01 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
---
---
{
"version": "https://jsonfeed.org/version/1",
"title": {{ site.title | jsonify }},
"description": {% if site.description %}{{ site.description | jsonify }}{% endif %},
"home_page_url": "{{ site.url }}",
"feed_url": "{{ site.url }}/feed.json",
"icon": "{{ site.url }}/assets/img/babyjoe.jpg",
"favicon": "{{ site.url}}/favicon.png",
{% if site.author %}
"author": {
"name": {{ site.author | jsonify }}
},
{% endif %}
"items": [
{% for post in site.posts limit:10 %}
{
"id": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
"url": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
"title": {{ post.title | jsonify }},
"image": "{% include image/post-image.html %}",
"thumbnail": "{% include image/post-small.html %}",
"content_html": {{ post.excerpt | strip_html |truncatewords: 50 | jsonify }},
"date_published": "{{ post.date | date_to_rfc822 }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}