judofyr (owner)

Revisions

gist: 35788 Download_button fork
public
Public Clone URL: git://gist.github.com/35788.git
Embed All Files: show embed
atom.txt #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
extension: xml
layout: nil
filter:
  - erb
---
<% pages = @pages.find(:limit => 10,
                       :in_directory => 'posts',
                       :sort_by => 'created_at',
                       :reverse => true) -%>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Magnus Holm</title>
  <subtitle>Thoughts on life, internet and programming</subtitle>
  <id>tag:judofyr.net,1992-10-15:/</id>
  <link rel="self" type="application/atom+xml" href="http://judofyr.net/feed/atom.xml"/>
  <link rel="alternate" type="text/html" href="http://judofyr.net/"/>
  <updated><%= Time.now.xmlschema %></updated>
  <author>
    <name>Magnus Holm</name>
    <email>judofyr@gmail.com</email>
    <uri>http://judofyr.net</uri>
  </author>
<% pages.each do |page|;c=page.created_at.utc%>
  <entry>
    <title><%= page.title %></title>
    <id>tag:judofyr.net,<%=c.xmlschema[0..9]%>:<%=c.to_i%></id>
    <link href="http://judofyr.net<%= page.url %>"/>
    <updated><%= c.xmlschema %></updated>
    <published><%= c.xmlschema %></published>
    <content type="html"><![CDATA[<%= Webby::Renderer.new(page)._render_page %>]]></content>
  </entry>
<% end -%>
</feed>