generated from arpitbatra123/eleventy-blog-mnml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.njk
28 lines (28 loc) · 1.09 KB
/
feed.njk
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
---
permalink: feed.xml
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ siteMeta.author.name }}</title>
<subtitle>{{ siteMeta.description }}</subtitle>
<link href="{{ siteMeta.url }}" rel="self"/>
<link href="{{ siteMeta.url }}"/>
<updated>{{ collections.posts | rssLastUpdatedDate }}</updated>
<id>{{ siteMeta.url }}</id>
<author>
<name>{{ siteMeta.author.name }}</name>
<email>{{ siteMeta.author.email }}</email>
</author>
{%- for post in collections.posts %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(siteMeta.url) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}
<hr/> <p><a href='mailto:[email protected]?subject=Reply: {{post.data.title}}'>Reply via email</a> </p>
</content>
</entry>
{%- endfor %}
</feed>