fix: syndication tweaks

This commit is contained in:
Cory Dransfeldt 2023-09-05 09:43:48 -07:00
parent 46d7bf28a4
commit 55cf750643
No known key found for this signature in database
2 changed files with 23 additions and 1 deletions

View file

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