fix: syndication tweaks
This commit is contained in:
parent
46d7bf28a4
commit
55cf750643
2 changed files with 23 additions and 1 deletions
21
src/feeds/follow.json.liquid
Normal file
21
src/feeds/follow.json.liquid
Normal 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 %}
|
||||
]
|
||||
}
|
Reference in a new issue