-
Notifications
You must be signed in to change notification settings - Fork 6
/
feed.xml.liquid
26 lines (26 loc) · 1 KB
/
feed.xml.liquid
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
---
permalink: feed.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="https://webcomponents.guide/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Web Components Guide</title>
<link>{{ baseurl }}</link>
<atom:link href="{{ baseurl }}/{{ page.url }}" rel="self" type="application/rss+xml" />
<language>en</language>
{%- for post in collections.blog | reverse %}
{%- capture absolutePostUrl %}{{ baseurl }}{{ post.url }}{% endcapture %}
<item>
<title>{{ post.data.title }}</title>
<link>{{ absolutePostUrl }}</link>
<description>{{ post.templateContent | html_to_absolute_urls: absolutePostUrl }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
{%- for author in post.authors %}
<dc:creator>{{ author }}</dc:creator>
{%- endfor %}
<guid>{{ absolutePostUrl }}</guid>
</item>
{%- endfor %}
</channel>
</rss>