mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00

commit 95c9eb09fb95bb65e6d8836f908ff551fd66b4a8 Author: Tom <thomas.hodson@ecmwf.int> Date: Fri Apr 4 22:48:31 2025 +0100 New post
38 lines
1.5 KiB
JSON
38 lines
1.5 KiB
JSON
---
|
|
layout: none
|
|
---
|
|
{
|
|
"version": "https://jsonfeed.org/version/1.1",
|
|
"title": {{ site.title | jsonify }},
|
|
"description": {% if site.description %}{{ site.description | jsonify }}{% endif %},
|
|
"home_page_url": "{{ site.url }}",
|
|
"feed_url": "{{ site.url }}/feed.json",
|
|
"favicon": "{{ site.url}}/apple-touch-icon.png",
|
|
"icon": "{{ site.url}}/assets/images/android-chrome-512x512.png",
|
|
"user_comment": "Only you, dear reader of the raw json feed, will ever see this.",
|
|
"authors": [{
|
|
"name": "Tom Hodson",
|
|
"url": "{{ site.url }}",
|
|
"avatar": "{{ site.url }}/assets/images/avatar.jpeg"
|
|
}],
|
|
"language": "en",
|
|
"items": [
|
|
|
|
{% for post in site.posts limit:20 %}
|
|
{% if post.draft == false or jekyll.environment == "development" %}
|
|
{% unless post.exclude_from_rss %}
|
|
{
|
|
"id": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
|
|
"url": "{{ post.url | prepend: site.baseurl | prepend: site.url }}",
|
|
{% if post.excerpt %}"summary": {{ post.excerpt | jsonify }},{% endif %}
|
|
{% if post.social_image %}"image": "{{ post.social_image | prepend: site.baseurl | prepend: site.url }}",{% endif %}
|
|
"title": {{ post.title | jsonify }},
|
|
"content_html": {{ post.content | jsonify }},
|
|
"date_published": "{{ post.date | date_to_rfc822 }}",
|
|
"date_modified": "{{ post.last_modified_at | date_to_rfc822 }}"
|
|
}{% unless forloop.last %},{% endunless %}
|
|
{% endunless %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
]
|
|
} |