Skip to content

Commit 83d662c

Browse files
author
Tim Watson
committed
Add rss feed template
CHWEB-6 #resolve #comment resolved by adding liquid template
1 parent ee49068 commit 83d662c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="author" content="{{ site.author.name }}">
66
<!-- Le styles -->
77
<link rel="alternate" type="application/rss+xml" href="/rss.xml" title="RSS feed for this page">
8-
<link rel="alternate" type="application/atom+xml" href="/atom.xml" title="Atom feed for this page"/>
8+
<link rel="alternate" type="application/atom+xml" href="/rss.xml" title="Atom feed for this page"/>
99
<link href="/css/bootstrap.css" rel="stylesheet">
1010
<link href="/css/bootstrap-responsive.css" rel="stylesheet">
1111
<link href="/css/pygments.css" rel="stylesheet">

rss.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
layout: none
3+
---
4+
<?xml version="1.0" encoding="ISO-8859-1" ?>
5+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6+
<channel>
7+
<title>{{ site.name }} - Articles</title>
8+
<description>{{ site.description }}</description>
9+
<link>{{ site.url }}</link>
10+
{% for post in site.posts %}
11+
<item>
12+
<title>{{ post.title }}</title>
13+
<description>{{ post.content | xml_escape }}</description>
14+
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
15+
<link>{{ post.link | escape }}</link>
16+
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
17+
</item>
18+
{% endfor %}
19+
</channel>
20+
</rss>

0 commit comments

Comments
 (0)