Skip to content

Commit 5ec3a66

Browse files
committed
Merge pull request plusjade#272 from groundh0g/jb-issues-157-215
RSS and Atom patches from plusjade#157 and plusjade#215.
2 parents 3e239c9 + 221a8f6 commit 5ec3a66

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

atom.xml

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title : Atom Feed
66
<feed xmlns="http://www.w3.org/2005/Atom">
77

88
<title>{{ site.title | xml_escape }}</title>
9-
<link href="{{ site.production_url }}/{{ site.atom_path }}" rel="self"/>
9+
<link href="{{ site.production_url }}{{ site.JB.atom_path }}" rel="self"/>
1010
<link href="{{ site.production_url }}"/>
1111
<updated>{{ site.time | date_to_xmlschema }}</updated>
1212
<id>{{ site.production_url }}</id>
@@ -15,7 +15,7 @@ title : Atom Feed
1515
<email>{{ site.author.email }}</email>
1616
</author>
1717

18-
{% for post in site.posts %}
18+
{% for post in site.posts limit:20 %}
1919
<entry>
2020
<title>{{ post.title | xml_escape }}</title>
2121
<link href="{{ site.production_url }}{{ post.url }}"/>

rss.xml

100644100755
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ title : RSS Feed
44
---
55

66
<?xml version="1.0" encoding="UTF-8" ?>
7-
<rss version="2.0">
7+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
88
<channel>
99
<title>{{ site.title | xml_escape }}</title>
1010
<description>{{ site.title | xml_escape }} - {{ site.author.name | xml_escape }}</description>
11-
<link>{{ site.production_url }}{{ site.rss_path }}</link>
1211
<link>{{ site.production_url }}</link>
13-
<lastBuildDate>{{ site.time | date_to_xmlschema }}</lastBuildDate>
14-
<pubDate>{{ site.time | date_to_xmlschema }}</pubDate>
15-
<ttl>1800</ttl>
12+
<atom:link href="{{ site.production_url }}{{ site.JB.rss_path }}" rel="self" type="application/rss+xml" />
13+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
14+
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
15+
<ttl>60</ttl>
1616

17-
{% for post in site.posts %}
17+
{% for post in site.posts limit:20 %}
1818
<item>
1919
<title>{{ post.title | xml_escape }}</title>
2020
<description>{{ post.content | xml_escape }}</description>
2121
<link>{{ site.production_url }}{{ post.url }}</link>
2222
<guid>{{ site.production_url }}{{ post.id }}</guid>
23-
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
23+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
2424
</item>
2525
{% endfor %}
2626

0 commit comments

Comments
 (0)