feed.json (2897B)
1 --- 2 layout: 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:36 %} 22 { 23 "id": "{{ post.url | absolute_url | sha1 }}", 24 "title": {{ post.title | jsonify }}, 25 "summary": {{ post.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 "url": "{{ post.enclosure }}", 35 "mime_type": "{{ post.enclosure_type }}", 36 "size_in_bytes": "{{ post.enclosure_length }}" 37 },{% endif %} 38 "date_published": "{{ post.date | date_to_xmlschema }}", 39 "date_modified": "{{ post.date | date_to_xmlschema }}", 40 {% if post.author %} 41 "author": {% if post.author.name %} { 42 "name": "{{ post.author.name }}", 43 "url": {% if post.author.url %}"{{ post.author.url }}"{% else %}null{% endif %}, 44 "avatar": {% if post.author.avatar %}"{{ post.author.avatar }}"{% else %}null{% endif %} 45 } 46 {% else %}"{{ post.author }}"{% endif %} 47 {% else %} 48 "author": {% if site.author.name %} { 49 "name": "{{ site.author.name }}", 50 "url": {% if site.author.url %}"{{ site.author.url }}"{% else %}null{% endif %}, 51 "avatar": {% if site.author.avatar %}"{{ site.author.avatar }}"{% else %}null{% endif %} 52 } 53 {% else %} 54 "{{ site.author }}" 55 {% endif %} 56 {% endif %} 57 }{% if forloop.last == false %},{% endif %} 58 {% endfor %} 59 ] 60 }