aboutsummaryrefslogtreecommitdiff
path: root/feed.json
diff options
context:
space:
mode:
Diffstat (limited to 'feed.json')
-rw-r--r--feed.json61
1 files changed, 0 insertions, 61 deletions
diff --git a/feed.json b/feed.json
deleted file mode 100644
index 110f216..0000000
--- a/feed.json
+++ /dev/null
@@ -1,61 +0,0 @@
1---
2layout: null
3---
4{
5 "version": "https://jsonfeed.org/version/1",
6 "title": "{{ site.title | xml_escape }}",
7 "home_page_url": "{{ "/" | absolute_url }}",
8 "feed_url": "{{ "/feed.json" | absolute_url }}",
9 "description": {{ site.description | jsonify }},
10 "icon": "{{ "/apple-touch-icon.png" | absolute_url }}",
11 "favicon": "{{ "/favicon.ico" | absolute_url }}",
12 "expired": false,
13 {% if site.author %}
14 "author": {% if site.author.name %} {
15 "name": "{{ site.author.name }}",
16 "url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},
17 "avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}
18 },{% else %}"{{ site.author }}",{% endif %}
19 {% endif %}
20"items": [
21 {% for post in site.posts limit:500 %}
22 {
23 "id": "{{ post.url | absolute_url | sha1 }}",
24 "title": {{ post.title | jsonify }},
25 "summary": {{ post.seo_description | jsonify }},
26 "content_text": {{ post.content | strip_html | strip_newlines | jsonify }},
27 "content_html": {{ post.content | strip_newlines | jsonify }},
28 "url": "{{ post.url | absolute_url }}",
29 {% if post.image.size > 1 %}"image": {{ post.image | jsonify }},{% endif %}
30 {% if post.link.size > 1 %}"external_url": "{{ post.link }}",{% endif %}
31 {% if post.banner.size > 1 %}"banner_image": "{{ post.banner }}",{% endif %}
32 {% if post.tags.size > 1 %}"tags": {{ post.tags | jsonify }},{% endif %}
33 {% if post.enclosure.size > 1 %}"attachments": [
34 {
35 "url": "{{ post.enclosure }}",
36 "mime_type": "{{ post.enclosure_type }}",
37 "size_in_bytes": "{{ post.enclosure_length }}"
38 },{% endif %}
39 "date_published": "{{ post.date | date_to_xmlschema }}",
40 "date_modified": "{{ post.date | date_to_xmlschema }}",
41 {% if post.author %}
42 "author": {% if post.author.name %} {
43 "name": "{{ post.author.name }}",
44 "url": {% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %},
45 "avatar": {% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %}
46 }
47 {% else %}"{{ post.author }}"{% endif %}
48 {% else %}
49 "author": {% if site.author.name %} {
50 "name": "{{ site.author.name }}",
51 "url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %},
52 "avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %}
53 }
54 {% else %}
55 "{{ site.author }}"
56 {% endif %}
57 {% endif %}
58 }{% if forloop.last == false %},{% endif %}
59 {% endfor %}
60 ]
61}