-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.mokkf
30 lines (27 loc) · 971 Bytes
/
feed.mokkf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
permalink: "/feed.xml"
markdown: false
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<updated>{{ global.date.rfc_3339 }}</updated>
<title>{{ global.title }}</title>
<link href="{{ 'feed.xml' | prepend: global.url }}" rel="self"/>
<link href="{{ global.url }}"/>
<id>{{ global.url }}</id>
{% for post in collections["posts"] %}
{% assign author = global.authors | where: "short", post.data.author | first %}
<entry>
<author>
<name>{{ author.name }}</name>
<email>{{ author.email }}</email>
</author>
<title>{{ post.data.title }}</title>
<link href="{{ post.url | remove: 'index.html' | remove: global.url | url_encode | prepend: global.url }}"/>
<pubDate>{{ post.date.rfc_3339 }}</pubDate>
<updated>{{ post.date.rfc_3339 }}</updated>
<id>{{ post.url | remove: 'index.html' | remove: global.url | url_encode | prepend: global.url }}</id>
<content type="html">{{ post.content | escape }}</content>
</entry>
{% endfor %}
</feed>