3 # The excludeFromCollections seems to be necessary here to avoid "tried to use templateContent too early" but I don't know why
4 # This doesn't seem like it should be necessary, but I get issues with `serve` when I don't have it
5 # From https://github.com/11ty/eleventy/issues/3136
6 eleventyExcludeFromCollections:
12 url: https://blog.witchoflight.com/
13 base: https://blog.witchoflight.com/
16 email: cassie+blog@witchoflight.com
18 subtitle: A collection of Cassie's harebrained schemes.
21 url: https://blog.witchoflight.com/feed.xml
22 id: https://blog.witchoflight.com/
24 <?xml version="1.0" encoding="utf-8"?>
25 <feed xmlns="http://www.w3.org/2005/Atom">
26 <title>{{ metadata.title }}</title>
27 <subtitle>{{ metadata.feed.subtitle }}</subtitle>
28 <link href="{{ metadata.feed.url }}" rel="self"/>
29 <link href="{{ metadata.url }}"/>
30 <updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
31 <id>{{ metadata.feed.id }}</id>
33 <name>{{ metadata.author.name }}</name>
34 <email>{{ metadata.author.email }}</email>
36 {%- for post in collections.posts | reverse %}
37 {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
39 <title>{{ post.data.title }}</title>
40 <link href="{{ absolutePostUrl }}"/>
41 <published>{{ post.data.published | toRfc3339 }}</published>
42 {% if post.data.updated %}
43 <updated>{{ post.data.updated | toRfc3339 }}</updated>
45 <id>{{ absolutePostUrl }}</id>
46 <content type="html">{{ post.templateContent | renderTransforms(post.data.page, metadata.base) }}</content>