sass-site/source/feed.liquid

27 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-04-04 20:22:44 +02:00
---
2023-04-06 20:46:54 +02:00
permalink: '/feed.xml'
2023-04-04 20:22:44 +02:00
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Sass Blog</title>
<id>{{ '/blog' | absoluteUrl: site.url }}</id>
<link href="{{ '/blog' | absoluteUrl: site.url }}"/>
2023-04-05 16:54:46 +02:00
<link href="{{ page.url | absoluteUrl: site.url }}" rel="self"/>
2023-04-04 20:22:44 +02:00
<updated>{{ collections.blog | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
{%- assign posts = collections.blog | reverse -%}
2023-04-06 17:54:48 +02:00
{%- for post in posts limit:6 -%}
{%- assign absolutePostUrl = post.url | absoluteUrl: site.url %}
2023-04-04 20:22:44 +02:00
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}" rel="alternate"/>
<id>{{ absolutePostUrl }}</id>
<published>{{ post.date | dateToRfc3339 }}</published>
2023-04-05 00:05:24 +02:00
<updated>{{ post.data.updated | default: post.date | dateToRfc3339 }}</updated>
2023-04-04 20:22:44 +02:00
<author>
<name>{{ post.data.author }}</name>
</author>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls: absolutePostUrl | escape }}</content>
2023-04-06 17:54:48 +02:00
</entry>{% endfor %}
2023-04-04 20:22:44 +02:00
</feed>