Skip to content

Commit 812e27b

Browse files
author
Matt Swanson
committed
Add Atom rss feeds
1 parent a760814 commit 812e27b

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var:
77
archive_path: /archive.html
88
categories_path : /categories.html
99
tags_path : /tags.html
10+
rss_path: /atom.xml
1011

1112
production_url : http://username.github.com # or your custom domain name
1213
title : Jekyll Boostrap

atom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: nil
3+
---
4+
<?xml version="1.0" encoding="utf-8"?>
5+
<feed xmlns="http://www.w3.org/2005/Atom">
6+
7+
<title>{{ site.title }}</title>
8+
<link href="{{ site.production_url }}/atom.xml" rel="self"/>
9+
<link href="{{ site.production_url }}"/>
10+
<updated>{{ site.time | date_to_xmlschema }}</updated>
11+
<id>{{ site.production_url }}</id>
12+
<author>
13+
<name>{{ site.author.name }}</name>
14+
<email>{{ site.author.email }}</email>
15+
</author>
16+
17+
{% for post in site.posts %}
18+
<entry>
19+
<title>{{ post.title }}</title>
20+
<link href="{{ site.production_url }}{{ post.url }}"/>
21+
<updated>{{ post.date | date_to_xmlschema }}</updated>
22+
<id>h{{ site.production_url }}{{ post.id }}</id>
23+
<content type="html">{{ post.content | xml_escape }}</content>
24+
</entry>
25+
{% endfor %}
26+
27+
</feed>

0 commit comments

Comments
 (0)