39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
---
|
|
permalink: "{{ metadata.feed.path | url }}"
|
|
eleventyExcludeFromCollections: true
|
|
---
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
|
|
<title>{{ metadata.title }}</title>
|
|
{% set absoluteUrl %}{{ metadata.feed.path | url | absoluteUrl(metadata.url) }}{% endset %}
|
|
<link href="{{ absoluteUrl }}" rel="self" type="application/atom+xml" />
|
|
<link href="{{ metadata.url }}" type="text/html" />
|
|
<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 | reverse %}
|
|
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
|
|
<entry>
|
|
<title>{{ post.title }}</title>
|
|
<link href="{{ absolutePostUrl }}" rel="alternate" type="text/html" title="{{ post.title }}" />
|
|
<pubdate>{{ post.published_at | rssDate }}</pubdate>
|
|
<updated>{{ post.updated_at | rssDate }}</updated>
|
|
<id>{{ absolutePostUrl }}</id>
|
|
<summary type="html">{{ post.excerpt | htmlToAbsoluteUrls(absolutePostUrl) }}</summary>
|
|
<content type="html">{{ post.html | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
|
<author>
|
|
<name>{{ metadata.author.name }}</name>
|
|
</author>
|
|
{% if post.primary_tag %}
|
|
<category term="{{ post.primary_tag.name }}" />
|
|
{% endif %}
|
|
{% if post.feature_image %}
|
|
<media:thumbnail url="{{ post.feature_image }}" />
|
|
<media:content medium="image" url="{{ post.feature_image }}"/>
|
|
{% endif %}
|
|
</entry>
|
|
{%- endfor %}
|
|
</feed> |