Last active
August 22, 2022 05:21
-
-
Save jessesquires/45c9173e1b2e3e7bf7e24b02dedc243a to your computer and use it in GitHub Desktop.
Jekyll JSON Feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: null | |
--- | |
{ | |
"version": "https://jsonfeed.org/version/1", | |
"title": "{{ site.title }}", | |
"home_page_url": "{{ site.url }}", | |
"feed_url": "{{ site.url }}/feed.json", | |
"description": "{{ site.description }}", | |
"icon": "{{ site.url }}{{ site.logo }}", | |
"favicon": "{{ site.url }}/favicon.ico", | |
"expired": false, | |
"author": { | |
"name": "{{ site.author.name }}", | |
"url": "{{ site.url }}", | |
"avatar": "{{ site.url }}{{ site.author.avatar }}" | |
}, | |
"items": [ | |
{% for post in site.posts %} | |
{ | |
"id": "{{ post.url | absolute_url | sha1 }}", | |
"url": "{{ site.url }}{{ post.url }}", | |
"title": {{ post.title | jsonify }}, | |
"date_published": "{{ post.date | date_to_xmlschema }}", | |
{% if post.date-updated %} | |
"date_modified": "{{ post.date-updated | date_to_xmlschema }}", | |
{% else %} | |
"date_modified": "{{ post.date | date_to_xmlschema }}", | |
{% endif %} | |
"author": { | |
"name": "{{ site.author.name }}", | |
"url": "{{ site.url }}", | |
"avatar": "{{ site.url }}{{ site.author.avatar }}" | |
}, | |
"summary": {{ post.excerpt | jsonify }}, | |
"content_html": {{ post.content | jsonify }} | |
}{% if forloop.last == false %},{% endif %} | |
{% endfor %} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment