summaryrefslogtreecommitdiff
path: root/tmpl/index.atom.erb
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/index.atom.erb')
-rw-r--r--tmpl/index.atom.erb10
1 files changed, 5 insertions, 5 deletions
diff --git a/tmpl/index.atom.erb b/tmpl/index.atom.erb
index 54e4b72..8719d05 100644
--- a/tmpl/index.atom.erb
+++ b/tmpl/index.atom.erb
@@ -1,12 +1,12 @@
<feed xmlns="http://www.w3.org/2005/Atom">
- <title>AndrewDM.me <%= @title %></title>
+ <title><%= atom_title %></title>
<link rel="self" type="application/atom+xml" href="./index.atom"/>
<link rel="alternate" type="text/html" href="./"/>
<link rel="alternate" type="text/markdown" href="./index.md"/>
- <updated><%= @pages.map{|p|p.updated}.sort.last.rfc3339 %></updated>
- <author><%= Person.new("Andrew Murrell").atom %></author>
- <id><%= $url %></id>
+ <updated><%= index_pages_leaves.map{|p|p.atom_updated}.sort.last.to_datetime.rfc3339 %></updated>
+ <author><%= Person.new(Config::get.default_author).atom %></author>
+ <id><%= url %></id>
- <% @pages.sort_by{|p| p.updated}.reverse.each do |page| %><%=@page.atom %><% end %>
+ <% index_pages_leaves.sort_by{|p|p.atom_updated}.reverse.each do |page| %><%= page.atom %><% end %>
</feed>