forked from brown-bag/brown-bag.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.xml
More file actions
22 lines (22 loc) · 863 Bytes
/
archive.xml
File metadata and controls
22 lines (22 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>{{ site.name | xml_escape }}</title>
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/archive.xml" rel="self" type="application/rss+xml" />
{% assign bags = site.posts | where: "archive", true %}
{% for bag in bags %}
<item>
<title>{{ bag.title }}</title>
<dc:creator>{{ bag.author }}</dc:creator>
<description>{{ bag.content }}</description>
<pubDate>{{ bag.date | date_to_rfc822 }}</pubDate>
<link>{{ site.url }}{{ bag.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ bag.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>