Permalink
Browse files

Added some feeds and config to support them.

  • Loading branch information...
darknoon committed Jan 6, 2012
1 parent 32a4d6b commit 88ea154f9e5349b700e9f0b7c702a0b7f8c7b679
Showing with 68 additions and 0 deletions.
  1. +6 −0 _config.yml
  2. +3 −0 _layouts/static.yml
  3. +32 −0 feeds/atom.xml
  4. +27 −0 feeds/rss.xml
View
@@ -1,5 +1,11 @@
permalink: pretty
+url: http://darknoon.com
+
+author: Andrew Pouliot
+
+title: Darknoon
+
navigation:
- text: Blog
url: /
View
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<html>
<head>
+<link rel="alternate" type="application/atom+xml" href="/feeds/atom.xml" />
+<link rel="alternate" type="application/rss+xml" href="/feeds/rss.xml" />
+
{% include style.html %}
<title>Darknoon: {{ page.title }}</title>
</head>
View
@@ -0,0 +1,32 @@
+---
+layout: nil
+feed: true
+---
+<?xml version="1.0"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+
+ <title>{{ site.title }}</title>
+ <link href="{{ site.url }}"/>
+ <link type="application/atom+xml" rel="self" href="{{ site.url }}{{ page.url }}"/>
+ <updated>{{ site.time | date_to_xmlschema }}</updated>
+ <id>{{ site.url }}/</id>
+ <author>
+ <name>{{ site.author }}</name>
+ <uri>{{ site.url }}</uri>
+ </author>
+
+ {% for post in site.posts %}
+ <entry>
+ <id>{{ site.url }}{{ post.url }}</id>
+ <link type="text/html" rel="alternate" href="{{ site.url }}{{ post.url }}"/>
+ <title>{{ post.title }}</title>
+ <updated>{{ post.date | date_to_xmlschema }}</updated>
+ <author>
+ <name>{{ site.author }}</name>
+ <uri>{{ site.url }}</uri>
+ </author>
+ <content type="html">{{ post.content | xml_escape }}</content>
+ </entry>
+ {% endfor %}
+
+</feed>
View
@@ -0,0 +1,27 @@
+---
+layout: nil
+feed: true
+---
+<?xml version="1.0"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ site.title }}</title>
+ <link>{{ site.url }}</link>
+ <atom:link href="{{ site.url }}{{ page.url }}" rel="self" type="application/rss+xml" />
+ <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>{{ site.url }}{{ post.url }}</link>
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
+ <author>{{ site.author }}</author>
+ <guid>{{ site.url }}{{ post.url }}</guid>
+ <description>{{ post.content | xml_escape }}</description>
+ </item>
+ {% endfor %}
+
+ </channel>
+</rss>

0 comments on commit 88ea154

Please sign in to comment.