This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/feed.11ty.liquid

21 lines
No EOL
662 B
Text

---
permalink: '/feed.json'
---
{% assign posts = collections.posts | reverse %}
{
"version": "https://jsonfeed.org/version/1",
"title": "All posts • Cory Dransfeldt",
"icon": "https://coryd.dev/static/images/avatar.webp",
"home_page_url": "https://coryd.dev",
"feed_url": "https://coryd.dev/feed.json",
"items": [{% for item in posts %}
{
"id": "{{ site.url }}{{ item.url }}",
"title": "{{ item.data.title }}",
"url": "{{ site.url }}{{ item.url }}",
"content_text": "{{ item.data.title }} {{ site.url }}{{ item.url }}",
"date_published": "{{ item.date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
}{% if not forloop.last %},{% endif %}
{% endfor %}
]
}