diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-31 23:16:24 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-31 23:16:24 -0700 |
commit | e64050035dc9d3c810e14c205688a54393dd7b43 (patch) | |
tree | 192337aa6682bde8335663134eb96e54edcf3e9d /bin/index.atom.erb | |
parent | b864379651d4bfe3d05f98350b720794ffa2806a (diff) |
indexes
Diffstat (limited to 'bin/index.atom.erb')
-rw-r--r-- | bin/index.atom.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/index.atom.erb b/bin/index.atom.erb index 7864e75..0667088 100644 --- a/bin/index.atom.erb +++ b/bin/index.atom.erb @@ -5,17 +5,17 @@ <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.date}.sort.last.rfc3339 %></updated> + <updated><%= @pages.map{|p|p.updated}.sort.last.rfc3339 %></updated> <author><%= Person.new("Andrew Murrell").atom %></author> <id>https://lukeshu.com/blog/</id> - <% @pages.sort_by{|p| p.date}.reverse.each do |page| %> + <% @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.slug %>.html"/> <link rel="alternate" type="text/markdown" href="./<%= page.slug %>.md"/> <id>https://lukeshu.com/blog/<%= page.slug %>.html</id> - <updated><%= page.date.rfc3339 %></updated> - <published><%= page.date.rfc3339 %></published> + <updated><%= page.updated.rfc3339 %></updated> + <published><%= page.published.rfc3339 %></published> <title><%= page.title %></title> <content type="html"><%= html_escape(page.content) %></content> <author><%= page.author.atom %></author> |