feat: links feed

This commit is contained in:
Cory Dransfeldt 2023-05-05 16:08:18 -07:00
parent c364dd533e
commit 2babf3e23f
No known key found for this signature in database
5 changed files with 129 additions and 3 deletions

23
src/feeds/links.liquid Normal file
View file

@ -0,0 +1,23 @@
---
layout: null
permalink: /links.xml
---
{% layout "./_includes/feed-links.liquid" %}
{% block title %}Links • Cory Dransfeldt{% endblock %}
{% block self %}links.xml{% endblock %}
{% block update %}
{{ articles | rssLastUpdatedDate }}{% endblock %}
{% block entries %}
{% assign links = articles | reverse %}
{% for article in articles %}
<entry>
<title>{{ article.content.title | escape }}</title>
<link href="{{article.content.url}}" />
<updated>{{ article.history.feed_dirty_date | date: "%m.%d.%Y" }}</updated>
<id>{{ article.content.id }}</id>
<content type="html">
{{ article.excerpt | escape }}
</content>
</entry>
{% endfor %}
{% endblock %}