--- permalink: feed.xml # The excludeFromCollections seems to be necessary here to avoid "tried to use templateContent too early" but I don't know why # This doesn't seem like it should be necessary, but I get issues with `serve` when I don't have it # From https://github.com/11ty/eleventy/issues/3136 eleventyExcludeFromCollections: collections: ["posts"] eleventyImport: collections: ["posts"] metadata: title: Witch of Light url: https://blog.witchoflight.com/ base: https://blog.witchoflight.com/ author: name: Cassie Jones email: cassie+blog@witchoflight.com feed: subtitle: A collection of Cassie's harebrained schemes. filename: feed.xml path: feed/feed.xml url: https://blog.witchoflight.com/feed.xml id: https://blog.witchoflight.com/ --- {{ metadata.title }} {{ metadata.feed.subtitle }} {{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }} {{ metadata.feed.id }} {{ metadata.author.name }} {{ metadata.author.email }} {%- for post in collections.posts | reverse %} {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %} {{ post.data.title }} {{ post.data.published | toRfc3339 }} {%- if post.data.updated %}{{ post.data.updated | toRfc3339 }} {%- else %}{{ post.data.published | toRfc3339 }} {%- endif -%} {{ absolutePostUrl }} {{ post.templateContent | renderTransforms(post.data.page, metadata.base) }} {%- endfor %}