Permalink
Browse files

Merged atom feed changes from weppos.

  • Loading branch information...
1 parent 80f02ea commit 8f2d35f454ce0ad5d03e7380d4dc19239a2922d1 @brixen brixen committed Dec 22, 2010
Showing with 22 additions and 18 deletions.
  1. +2 −0 web/_config.yml
  2. +0 −1 web/_layouts/page.html
  3. +20 −17 web/feed/atom.xml
View
@@ -5,4 +5,6 @@ markdown: kramdown
pygments: true
permalink: pretty
+
+host: http://rubini.us
---
View
@@ -7,7 +7,6 @@
<meta content='Rubinius is an implementation of the Ruby programming language. The Rubinius bytecode virtual machine is written in C++. The bytecode compiler is written in pure Ruby. The vast majority of the core library is also written in Ruby, with some supporting primitives that interact with the VM directly.' name='description'>
<meta content='Less Than Three. &lt;3. http://less.thanthree.com' name='author'>
<link href='/' rel='home'>
-
<link href='/' rel='start'>
{% if page.previous_url %}<link href='{{ page.base_dir }}{{ page.previous_url }}' rel='prev' title='{{ page.previous }}'>{% endif %}
{% if page.next_url %}<link href='{{ page.base_dir }}{{ page.next_url }}' rel='next' title='{{ page.next }}'>{% endif %}
View
@@ -4,23 +4,26 @@ layout: nil
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- <title>Rubinius : Use Ruby&#8482;</title>
- <link href="http://rubini.us/atom.xml" rel="self"/>
- <link href="http://rubini.us/"/>
- {% for post in site.posts limit:1 %}
- <updated>{{ post.date | date: '%Y-%m-%dT00:00:00+00:00' }}</updated>
- {% endfor %}
- <id>http://rubini.us/</id>
+ <title>Rubinius Blog</title>
+ <link rel="self" type="application/atom+xml" href="{{ site.host }}{{ page.url }}" />
+ <link rel="alternate" type="text/html" href="{{ site.host }}/blog" />
+ <updated>{{ post.date | date: '%Y-%m-%dT00:00:00+00:00' }}</updated>
+ <id>{{ site.host }}/</id>
- {% for post in site.posts %}
- <entry>
- <author><name>{{ post.author }}</name></author>
- <title>{{ post.title }}</title>
- <link href="http://rubini.us{{ post.url }}"/>
- <updated>{{ post.date | date: '%Y-%m-%dT00:00:00+00:00' }}</updated>
- <id>http://rubini.us{{ post.id }}</id>
- <content type="html">{{ post.content | xml_escape }}</content>
- </entry>
- {% endfor %}
+ {% for post in site.posts %}
+ <entry>
+ <title>{{ post.title }}</title>
+ <id>{{ site.host }}{{ post.url }}</id>
+ <link rel="alternate" type="text/html" href="{{ site.host }}{{ post.url }}" />
+ <updated>{{ post.date | date: '%Y-%m-%dT00:00:00+00:00' }}</updated>
+ <author>
+ <name>{{ post.author }}</name>
+ </author>
+ {% for category in post.categories %}
+ <category term="{{ category | downcase }}" />
+ {% endfor %}
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
</feed>

0 comments on commit 8f2d35f

Please sign in to comment.