Skip to content

Commit

Permalink
atom feed
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort committed Jan 12, 2014
1 parent 4d5f6f4 commit 6bf604d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/bootstrap-theme.css">
<link rel="stylesheet" href="/css/tipsybear.css">

<!-- Atom Feed -->
<link href="{{ site.url }}/atom.xml" type="application/atom+xml" rel="alternate" title="Atom Feed">
</head>
<body>
<div id="wrapper">
Expand Down
25 changes: 25 additions & 0 deletions atom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Tipsy Bear Studios</title>
<link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>

{% for post in site.posts limit:10 %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
<author>
<name>{{ post.author }}</name>
<uri>{{ site.url }}/about/</uri>
</author>
</entry>
{% endfor %}
</feed>
6 changes: 6 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ layout: nil
<priority>0.5</priority>
</url>
{% endfor %}
<url>
<loc>{{ site.url }}/contact/</loc>
<lastmod>{{ site.time | date_to_xmlschema}}</lastmod>
<changefreq>daily</changefreq>
<priority>0.3</priority>
</url>
</urlset>

0 comments on commit 6bf604d

Please sign in to comment.