Permalink
Browse files

refresh: rss feeds

  • Loading branch information...
1 parent 7c440be commit 0b226b1fedfdb66491039d5a3257ba9af2fb398f @mor1 committed May 17, 2011
Showing with 187 additions and 34 deletions.
  1. +17 −5 _layouts/post.html
  2. +0 −2 css/site.css
  3. +26 −19 feeds/atom.xml
  4. +34 −0 feeds/blog/atom.xml
  5. +30 −0 feeds/blog/rss.xml
  6. +34 −0 feeds/docs/atom.xml
  7. +30 −0 feeds/docs/rss.xml
  8. +16 −8 feeds/rss.xml
View
22 _layouts/post.html
@@ -10,16 +10,28 @@
<em>Posted on {{ page.date | date_to_long_string }} by {{ page.author | xml_escape }}.</em>
</article>
+<!-- how is this supposed to work with multiple post categories?!
<nav class="articles-nav">
<p>
- {% if page.previous %}
- <span class="nav-previous">&larr; <a href="{{ page.previous.url }}" rel="prev" title="{{ page.previous.title }}" accesskey="p">prev</a></span>
+ {% if post.previous %}
+ <span class="nav-previous">&larr;
+ <a href="{{ post.previous.url }}" rel="prev" title="{{ post.previous.title }}" accesskey="p">
+ prev
+ </a>
+ </span>
{% endif %}
- {% if page.previous and page.next %}
+
+ {% if post.previous and post.next %}
<span class="pipe">|</span>
{% endif %}
- {% if page.next %}
- <span class="nav-next"><a href="{{ page.next.url }}" rel="prev" title="{{ page.next.title }}" accesskey="n">succ</a> &rarr;</span>
+
+ {% if post.next %}
+ <span class="nav-next">
+ <a href="{{ post.next.url }}" rel="succ" title="{{ post.next.title }}" accesskey="n">
+ succ
+ </a> &rarr;
+ </span>
{% endif %}
</p>
</nav>
+-->
View
2 css/site.css
@@ -237,8 +237,6 @@ body#people #navigation a.people
#front-page ul.three-col { width: 33%; }
#front-page ul.one-col { width: 100%; }
-p.read-more { text-align: right; }
-
/* People page */
#people {
View
45 feeds/atom.xml
@@ -1,27 +1,34 @@
---
layout: nil
---
+
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- <title>Personal Containers</title>
- <link href="http://perscon.net/feeds/atom.xml" rel="self"/>
- <link href="http://perscon.net/"/>
- <updated>{{ site.time | date_to_xmlschema }}</updated>
- <id>http://perscon.net/</id>
- <author>
- <name>Anil Madhavapeddy</name>
- <email>anil@recoil.org</email>
- </author>
-
- {% for post in site.posts limit:20 offset:0 %}
- <entry>
- <title>{{ post.title }}</title>
- <link href="http://perscon.net{{ post.url }}"/>
- <updated>{{ post.date | date_to_xmlschema }}</updated>
- <id>http://perscon.net{{ post.id }}</id>
- <content type="html">{{ post.content | xml_escape }}</content>
- </entry>
- {% endfor %}
+ <title>Personal Containers</title>
+ <link type="application/atom+xml" rel="self" href="http://perscon.net/feeds/atom.xml"/>
+ <link href="http://perscon.net/"/>
+
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://perscon.net/</id>
+ <author>
+ <name>Anil Madhavapeddy</name>
+ <email>anil@recoil.org</email>
+ </author>
+
+ {% for post in site.posts %}
+ <entry>
+ <id>http://perscon.net{{ post.id }}</id>
+ <link type="text/html" rel="alternate" href="http://perscon.net{{ post.url }}"/>
+ <title>{{ post.title }}</title>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <author>
+ <name>{{ post.author }}</name>
+ <uri>http://perscon.net/people/</uri>
+ </author>
+ <id>http://perscon.net{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
</feed>
View
34 feeds/blog/atom.xml
@@ -0,0 +1,34 @@
+---
+layout: nil
+---
+
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>Personal Containers Blog</title>
+ <link type="application/atom+xml" rel="self" href="http://perscon.net/feeds/blog/atom.xml"/>
+ <link href="http://perscon.net/blog/"/>
+
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://perscon.net/blog/</id>
+ <author>
+ <name>Anil Madhavapeddy</name>
+ <email>anil@recoil.org</email>
+ </author>
+
+ {% for post in site.categories.blog %}
+ <entry>
+ <id>http://perscon.net{{ post.id }}</id>
+ <link type="text/html" rel="alternate" href="http://perscon.net{{ post.url }}"/>
+ <title>{{ post.title }}</title>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <author>
+ <name>{{ post.author }}</name>
+ <uri>http://perscon.net/people/</uri>
+ </author>
+ <id>http://perscon.net{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
+</feed>
View
30 feeds/blog/rss.xml
@@ -0,0 +1,30 @@
+---
+layout: nil
+---
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+
+ <channel>
+ <title>Personal Containers Blog</title>
+ <link>http://perscon.net/blog/</link>
+ <atom:link href="http://perscon.net/feeds/blog/rss.xml" rel="self" type="application/rss+xml" />
+ <description>Personal Containers Blog RSS feed</description>
+ <copyright>Copyright (C) 2010 Anil Madhavapeddy, Richard Mortier</copyright>
+
+ <language>en-us</language>
+ <pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %Z" }}</pubDate>
+ <lastBuildDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %Z" }}</lastBuildDate>
+
+ {% for post in site.categories.blog %}
+ <item>
+ <title>{{ post.title }}</title>
+ <link>http://perscon.net{{ post.url }}</link>
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %Z" }}</pubDate>
+ <author>{{ post.author }}</author>
+ <guid isPermaLink="true">http://perscon.net{{ post.id }}</guid>
+ <description>{{ post.content | xml_escape }}</description>
+ </item>
+ {% endfor %}
+
+ </channel>
+</rss>
View
34 feeds/docs/atom.xml
@@ -0,0 +1,34 @@
+---
+layout: nil
+---
+
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>Personal Containers</title>
+ <link type="application/atom+xml" rel="self" href="http://perscon.net/feeds/docs/atom.xml"/>
+ <link href="http://perscon.net/"/>
+
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>http://perscon.net/docs/</id>
+ <author>
+ <name>Anil Madhavapeddy</name>
+ <email>anil@recoil.org</email>
+ </author>
+
+ {% for post in site.categories.docs %}
+ <entry>
+ <id>http://perscon.net{{ post.id }}</id>
+ <link type="text/html" rel="alternate" href="http://perscon.net{{ post.url }}"/>
+ <title>{{ post.title }}</title>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <author>
+ <name>{{ post.author }}</name>
+ <uri>http://perscon.net/people/</uri>
+ </author>
+ <id>http://perscon.net{{ post.id }}</id>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
+</feed>
View
30 feeds/docs/rss.xml
@@ -0,0 +1,30 @@
+---
+layout: nil
+---
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+
+ <channel>
+ <title>Personal Containers</title>
+ <link>http://perscon.net/</link>
+ <atom:link href="http://perscon.net/feeds/docs/rss.xml" rel="self" type="application/rss+xml" />
+ <description>Personal Containers Documentation RSS feed</description>
+ <copyright>Copyright (C) 2010 Anil Madhavapeddy, Richard Mortier</copyright>
+
+ <language>en-us</language>
+ <pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %Z" }}</pubDate>
+ <lastBuildDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %Z" }}</lastBuildDate>
+
+ {% for post in site.categories.docs %}
+ <item>
+ <title>{{ post.title }}</title>
+ <link>http://perscon.net{{ post.url }}</link>
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %Z" }}</pubDate>
+ <author>{{ post.author }}</author>
+ <guid isPermaLink="true">http://perscon.net{{ post.id }}</guid>
+ <description>{{ post.content | xml_escape }}</description>
+ </item>
+ {% endfor %}
+
+ </channel>
+</rss>
View
24 feeds/rss.xml
@@ -1,22 +1,30 @@
---
layout: nil
---
-<?xml version="1.0" encoding="utf-8"?>
-<rss version="2.0">
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+
<channel>
<title>Personal Containers</title>
- <description>Personal Containers RSS feed</description>
<link>http://perscon.net/</link>
+ <atom:link href="http://perscon.net/feeds/rss.xml" rel="self" type="application/rss+xml" />
+ <description>Personal Containers RSS feed</description>
<copyright>Copyright (C) 2010 Anil Madhavapeddy, Richard Mortier</copyright>
-
- {% for post in site.posts limit:20 offset:0 %}
+
+ <language>en-us</language>
+ <pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %Z" }}</pubDate>
+ <lastBuildDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %Z" }}</lastBuildDate>
+
+ {% for post in site.posts %}
<item>
<title>{{ post.title }}</title>
<link>http://perscon.net{{ post.url }}</link>
- <pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %Z" }}</pubDate>
+ <author>{{ post.author }}</author>
<guid isPermaLink="true">http://perscon.net{{ post.id }}</guid>
- <description>{{ post.content | xml_escape}}</description>
+ <description>{{ post.content | xml_escape }}</description>
</item>
{% endfor %}
- </channel>
+
+ </channel>
</rss>

0 comments on commit 0b226b1

Please sign in to comment.