add json feed
This commit is contained in:
parent
de289c2019
commit
633fec5ea5
1 changed files with 13 additions and 0 deletions
13
src/feed.11ty.liquid
Normal file
13
src/feed.11ty.liquid
Normal 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 %}
|
||||
]
|
||||
}
|
Reference in a new issue