forked from 11ty/11ty-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quicktipsfeed.njk
40 lines (40 loc) · 1.39 KB
/
quicktipsfeed.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
layout: false
permalink: /docs/quicktips/feed.xml
metadata:
title: Eleventy Quick Tips
url: https://www.11ty.dev/
author:
name: Zach Leatherman
email: zach@zachleat.com
feed:
subtitle: All of the official Eleventy Quick Tips, in feed form.
filename: feed.xml
path: docs/quicktips/feed.xml
url: https://www.11ty.dev/docs/quicktips/feed.xml
id: https://www.11ty.dev/
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>
<link href="{{ metadata.feed.url }}" rel="self"/>
<link href="{{ metadata.url }}"/>
<updated>{{ collections.quicktipssorted | rssLastUpdatedDate }}</updated>
<id>{{ metadata.feed.id }}</id>
<author>
<name>{{ metadata.author.name }}</name>
<email>{{ metadata.author.email }}</email>
</author>
{%- for post in collections.quicktipssorted | reverse %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
<entry>
<title>Quick Tip #{{ post.data.tipindex }}—{{ post.data.tiptitle }}</title>
<link href="{{ absolutePostUrl }}"/>
<updated>{{ post.date | rssDate }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
</entry>
{%- endfor %}
</feed>