2019-10-30 14:26:42 -04:00
|
|
|
---
|
2020-07-27 12:39:08 -04:00
|
|
|
# Metadata comes from _data/metadata.json
|
2020-07-27 12:40:11 -04:00
|
|
|
permalink: "{{ metadata.jsonfeed.path | url }}"
|
2019-10-30 14:26:42 -04:00
|
|
|
eleventyExcludeFromCollections: true
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"version": "https://jsonfeed.org/version/1",
|
|
|
|
"title": "{{ metadata.title }}",
|
|
|
|
"home_page_url": "{{ metadata.url }}",
|
|
|
|
"feed_url": "{{ metadata.jsonfeed.url }}",
|
|
|
|
"description": "{{ metadata.description }}",
|
|
|
|
"author": {
|
|
|
|
"name": "{{ metadata.author.name }}",
|
|
|
|
"url": "{{ metadata.author.url }}"
|
|
|
|
},
|
|
|
|
"items": [
|
2020-07-27 12:39:08 -04:00
|
|
|
{%- for post in collections.posts | reverse %}
|
|
|
|
{%- set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset -%}
|
2019-10-30 14:26:42 -04:00
|
|
|
{
|
|
|
|
"id": "{{ absolutePostUrl }}",
|
|
|
|
"url": "{{ absolutePostUrl }}",
|
|
|
|
"title": "{{ post.data.title }}",
|
2020-01-20 02:26:45 -05:00
|
|
|
"content_html": {{ post.templateContent | jsonStringify | safe }},
|
2019-10-30 14:26:42 -04:00
|
|
|
"date_published": "{{ post.date | rssDate }}",
|
|
|
|
"tags": [
|
|
|
|
{%- for c in post.data.category %}
|
|
|
|
"{{ c }}"
|
|
|
|
{%- if not loop.last -%}
|
|
|
|
,
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor %}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
{%- if not loop.last -%}
|
|
|
|
,
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor %}
|
|
|
|
]
|
|
|
|
}
|