summaryrefslogtreecommitdiff
path: root/tmpl/index.atom.erb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-06 23:18:24 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-06 23:18:24 -0500
commit4a3a404a5cb2a8d5be83e28cec5c539928fa30f4 (patch)
treeb6f636ba3ed0ce486941b1b9ad67cb0973699d6b /tmpl/index.atom.erb
parent7edb003cd1c9b53ffdff11ef85532e39f08db16d (diff)
aaaah
Diffstat (limited to 'tmpl/index.atom.erb')
-rw-r--r--tmpl/index.atom.erb17
1 files changed, 1 insertions, 16 deletions
diff --git a/tmpl/index.atom.erb b/tmpl/index.atom.erb
index cd70f7e..54e4b72 100644
--- a/tmpl/index.atom.erb
+++ b/tmpl/index.atom.erb
@@ -1,4 +1,3 @@
-<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>AndrewDM.me <%= @title %></title>
@@ -9,19 +8,5 @@
<author><%= Person.new("Andrew Murrell").atom %></author>
<id><%= $url %></id>
- <% @pages.sort_by{|p| p.updated}.reverse.each do |page| %>
- <entry xmlns="http://www.w3.org/2005/Atom">
- <link rel="alternate" type="text/html" href="<%= page.url %>"/>
- <id><%= page.url %></id>
- <updated><%= page.updated.rfc3339 %></updated>
- <published><%= page.published.rfc3339 %></published>
- <title><%= page.title %></title>
- <author><%= page.author.atom %></author>
-<% if page.content %>
- <content type="html"><%= html_escape(page.content) %></content>
-<% end %><% if page.rights %>
- <rights type="html"><%= html_escape(page.rights) %></rights>
-<% end %>
- </entry>
- <% end %>
+ <% @pages.sort_by{|p| p.updated}.reverse.each do |page| %><%=@page.atom %><% end %>
</feed>