Created
December 2, 2021 14:50
-
-
Save yatil/915bf892c7b1501fa426b20dee891f3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
permalink: feed/rss.xml | |
eleventyExcludeFromCollections: true | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>{{ metadata.title }}</title> | |
<subtitle>{{ metadata.feed.subtitle }}</subtitle> | |
{% set absoluteUrl %}{{ metadata.feed.path | url | absoluteUrl(metadata.url) }}{% endset %} | |
<link href="{{ absoluteUrl }}" rel="self"/> | |
<link href="{{ metadata.url }}"/> | |
<updated>{{ collections.posts | rssLastUpdatedDate }}</updated> | |
<id>{{ metadata.feed.id }}</id> | |
<author> | |
<name>{{ metadata.author.name }}</name> | |
<email>{{ metadata.author.email }}</email> | |
</author> | |
{%- for post in collections.posts %} | |
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.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) }}</content> | |
</entry> | |
{%- endfor %} | |
</feed> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment