add json feed

This commit is contained in:
Cory Dransfeldt 2023-03-14 09:15:46 -07:00
parent de289c2019
commit 633fec5ea5
No known key found for this signature in database

13
src/feed.11ty.liquid Normal file
View file

@ -0,0 +1,13 @@
---
permalink: '/feed.json'
---
{
"posts": [
{% for item in collections.posts %}
{
"title": "{{ item.data.title }}",
"url": "{{ item.url }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}