feat: links feed
This commit is contained in:
parent
c364dd533e
commit
2babf3e23f
5 changed files with 129 additions and 3 deletions
23
src/feeds/links.liquid
Normal file
23
src/feeds/links.liquid
Normal 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 %}
|
Reference in a new issue