34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
---
|
|
permalink: "{{ metadata.jsonfeed.path | url }}"
|
|
eleventyExcludeFromCollections: true
|
|
---
|
|
{
|
|
"version": "https://jsonfeed.org/version/1",
|
|
"title": "{{ metadata.title }}",
|
|
"home_page_url": "{{ metadata.url }}",
|
|
"feed_url": "{{ metadata.jsonfeed.url }}",
|
|
"description": "{{ metadata.description }}",
|
|
"authors": [{
|
|
"name": "{{ metadata.author.name }}",
|
|
"url": "{{ metadata.author.url }}"
|
|
}],
|
|
"language": "en",
|
|
"items": [
|
|
{%- for post in collections.posts | reverse %}
|
|
{%- set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset -%}
|
|
{
|
|
"id": "{{ absolutePostUrl }}",
|
|
"url": "{{ absolutePostUrl }}",
|
|
"title": "{{ post.title }}",
|
|
"summary": "{{ post.excerpt }}",
|
|
"content_html": {% if post.html %}{{ post.html | dump | safe }}{% else %}""{% endif %},
|
|
{% if post.feature_image %}"image": "{{ post.feature_image }}",{% endif %}
|
|
"date_published": "{{ post.published_at | rssDate }}",
|
|
"date_modified": "{{ post.updated_at | rssDate }}"
|
|
}
|
|
{%- if not loop.last -%}
|
|
,
|
|
{%- endif -%}
|
|
{%- endfor %}
|
|
]
|
|
} |