-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xml.njk
More file actions
executable file
·24 lines (23 loc) · 849 Bytes
/
Copy pathfeed.xml.njk
File metadata and controls
executable file
·24 lines (23 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<subtitle>{{ site.description }}</subtitle>
<link href="{{ url | url(true) }}" rel="self"/>
<link href="{{ "/" | url(true) }}"/>
{% set lastPage = search.pages() | last %}
<updated>{{ lastPage.data.date | date("ATOM") }}</updated>
<id>{{ "/" | url(true) }}</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>
{%- for post in search.pages("type=posts") | reverse %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ post.data.url | url(true) }}"/>
<updated>{{ post.data.date | date("ATOM") }}</updated>
<id>{{ post.data.url | url(true) }}</id>
<content type="html">{{ post.data.content | md | htmlUrl(true) }}</content>
</entry>
{%- endfor %}
</feed>