]> Witch of Git - web/blog/blob - feed.njk
Add anchors to headings, typography tweaks
[web/blog] / feed.njk
1 ---
2 permalink: feed.xml
3 metadata:
4 title: Witch of Light
5 url: https://blog.witchoflight.com/
6 author:
7 name: Cassie Jones
8 email: cassie+blog@witchoflight.com
9 feed:
10 subtitle: A collection of Cassie's harebrained schemes.
11 filename: feed.xml
12 path: feed/feed.xml
13 url: https://blog.witchoflight.com/feed.xml
14 id: https://blog.witchoflight.com
15 ---
16 <?xml version="1.0" encoding="utf-8"?>
17 <feed xmlns="http://www.w3.org/2005/Atom">
18 <title>{{ metadata.title }}</title>
19 <subtitle>{{ metadata.feed.subtitle }}</subtitle>
20 <link href="{{ metadata.feed.url }}" rel="self"/>
21 <link href="{{ metadata.url }}"/>
22 <updated>{{ collections.posts | rssLastUpdatedDate }}</updated>
23 <id>{{ metadata.feed.id }}</id>
24 <author>
25 <name>{{ metadata.author.name }}</name>
26 <email>{{ metadata.author.email }}</email>
27 </author>
28 {%- for post in collections.posts %}
29 {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
30 <entry>
31 <title>{{ post.data.title }}</title>
32 <link href="{{ absolutePostUrl }}"/>
33 <updated>{{ post.date | rssDate }}</updated>
34 <id>{{ absolutePostUrl }}</id>
35 <content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
36 </entry>
37 {%- endfor %}
38 </feed>