Skip to content

Commit

Permalink
needs a feed
Browse files Browse the repository at this point in the history
  • Loading branch information
kjell committed Jan 3, 2014
1 parent 0b2341a commit f8f9f2b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _config.yml
Expand Up @@ -4,3 +4,8 @@ kramdown:
input: GFM
pygments: true
permalink: /:year/:month/:title/

author:
name: Kjell
email: kjell@leanside.com
production_url: http://leanside.com
4 changes: 4 additions & 0 deletions _layouts/default.html
Expand Up @@ -2,6 +2,10 @@
<html lang="en">
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="alternate home" href="{{site.production_url}}/posts.atom" title="posts">
<link rel="alternate home"
href="https://github.com/kjell/leanside.com/commits/gh-pages.atom"
title="all site changes">
<body style="cursor: wait;">

{{ content }}
28 changes: 28 additions & 0 deletions posts.atom
@@ -0,0 +1,28 @@
---
layout: nil
title : Atom Feed
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

<title>{{ site.title }}</title>
<link href="{{ site.production_url }}/{{ site.atom_path }}" rel="self"/>
<link href="{{ site.production_url }}"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.production_url }}</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>

{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.production_url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.production_url }}{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}

</feed>

0 comments on commit f8f9f2b

Please sign in to comment.