summaryrefslogtreecommitdiff
path: root/tmpl/index.atom.erb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 16:45:53 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 16:45:53 -0500
commit5022d1a0df1534b1cbec1cbee23568f201ea1cc6 (patch)
tree559db39e2be5933c621a02c3f9874641b7f1a70c /tmpl/index.atom.erb
parentf63a89bb8c494ea6b049285ec7c904d6d6136a88 (diff)
Implement actual file generation, go through fixing things.
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>