chore: add rss for follow feed

This commit is contained in:
Cory Dransfeldt 2023-06-05 14:34:29 -07:00
parent db104f6c60
commit 75ad22fb70
No known key found for this signature in database
6 changed files with 124 additions and 14 deletions

20
src/feeds/follow.liquid Normal file
View file

@ -0,0 +1,20 @@
---
layout: null
permalink: /follow.xml
---
{% assign posts = follow.posts %}
{% layout "./_includes/feed-links.liquid" %}
{% block title %}Follow • Cory Dransfeldt{% endblock %}
{% block self %}follow.xml{% endblock %}
{% block update %}{{ articles[0].time | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
{% block entries %}
{% for item in posts %}
<entry>
<title>{{ item.title | escape }}</title>
<link href="{{item.url}}" />
<updated>{{ item.date_published | date: "%m.%d.%Y" }}</updated>
<id>{{ item.url }}</id>
<content type="html"></content>
</entry>
{% endfor %}
{% endblock %}