-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.videos.json
36 lines (34 loc) · 1023 Bytes
/
feed.videos.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
---
---
{
"version": "https://jsonfeed.org/version/1",
"title": {{ site.title | jsonify }},
"description": "Videos from sharpen.page",
"home_page_url": "{{ site.url }}",
"feed_url": "{{ site.url }}/feed.videos.json",
"favicon": "{{ site.url}}/icon.png",
{% if site.author %}
"author": {
"name": {{ site.author | jsonify }}
},
{% endif %}
"items": [
{% for post in site.videos reversed limit:10 %}
{
"id": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
{% if post.link %}
"url": "{{ post.link }}",
{% else %}
"url": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
{% endif %}
"title": {{ post.title | jsonify }},
{% if post.excerpt %}
"content_html": {{ post.excerpt | jsonify }},
{% else %}
"content_html": {{ post.content | jsonify }},
{% endif %}
"date_published": "{{ post.date | date_to_rfc822 }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]
}