2023-09-28 02:23:25 +00:00
|
|
|
---json
|
|
|
|
{
|
|
|
|
"layout": null,
|
|
|
|
"permalink": "feed.json",
|
|
|
|
"eleventyExcludeFromCollections": true,
|
|
|
|
"metadata": {
|
|
|
|
"subtitle": "A feed of all my posts on the fediverse",
|
|
|
|
"language": "en"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
---
|
|
|
|
{ {% from "macro-summary.njk" import summaryMacro %}
|
|
|
|
"version": "https://jsonfeed.org/version/1.1",
|
|
|
|
"title": "{{ ACTOR.name }}'s feed",
|
|
|
|
"language": "{{ metadata.language }}",
|
2023-10-02 22:19:23 +00:00
|
|
|
"home_page_url": "{{ ACTOR.url }}/",
|
2023-09-28 02:23:25 +00:00
|
|
|
"feed_url": "{{ permalink | absoluteUrl(ACTOR.url) }}",
|
|
|
|
"description": "{{ metadata.subtitle }}",
|
|
|
|
"author": {
|
|
|
|
"name": "{{ ACTOR.name }}",
|
2023-10-02 22:19:23 +00:00
|
|
|
"url": "{{ ACTOR.url }}/"
|
2023-09-28 02:23:25 +00:00
|
|
|
},
|
|
|
|
"items": [
|
|
|
|
{%- for post in collections.feed %}
|
|
|
|
{%- set absolutePostUrl = post.url | absoluteUrl(ACTOR.url) %}
|
|
|
|
{
|
|
|
|
"id": "{{ absolutePostUrl }}",
|
|
|
|
"url": "{{ absolutePostUrl }}",
|
|
|
|
"title": "{{ post.data.title }}",
|
|
|
|
"content_html": {{ summaryMacro(post.data, post.url) | concat(post.templateContent) | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }},
|
2023-10-02 22:19:23 +00:00
|
|
|
"date_published": "{{ post.data.published | dateObj | dateToRfc3339 }}"
|
2023-09-28 02:23:25 +00:00
|
|
|
}
|
|
|
|
{% if not loop.last %},{% endif %}
|
|
|
|
{%- endfor %}
|
|
|
|
]
|
|
|
|
}
|