Skip to content

Commit 0dba4bc

Browse files
committed
Add feed of hack write ups
1 parent f2db3d0 commit 0dba4bc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pages/feed.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: null
3+
permalink: /feed.xml
4+
---
5+
<?xml version="1.0" encoding="UTF-8"?>
6+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
7+
<channel>
8+
<title>{{ site.title }}</title>
9+
<description>{{ site.description }}</description>
10+
<link>{{site.url
11+
}}</link>
12+
<atom:link href="{{ site.url }}/feed.xml" rel="self"
13+
type="application/rss+xml" />
14+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
15+
<pubDate>{{site.time
16+
| date_to_rfc822 }}</pubDate>
17+
<ttl>60</ttl> {% assign sorted_hacks = site.hacks |
18+
where:"upcoming",false | sort:"date" | reverse %} {% for hack in sorted_hacks %} <item>
19+
<title>{{ hack.title }}</title>
20+
<description>{{ hack.content | xml_escape }}</description>
21+
<link>{{ site.url }}{{ hack.url }}</link>
22+
<guid isPermaLink="true">{{ site.url }}{{ hack.url }}</guid>
23+
<pubDate>{{ hack.date | date_to_rfc822 }}</pubDate>
24+
</item> {% endfor %} </channel>
25+
</rss>

0 commit comments

Comments
 (0)