From e64050035dc9d3c810e14c205688a54393dd7b43 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 31 Dec 2016 23:16:24 -0700 Subject: indexes --- bin/index.atom.erb | 8 ++++---- bin/index.md.erb | 4 ++-- bin/page.html.erb | 2 +- bin/util.rb | 19 +++++++++++++------ 4 files changed, 20 insertions(+), 13 deletions(-) (limited to 'bin') 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 @@ - <%= @pages.map{|p|p.date}.sort.last.rfc3339 %> + <%= @pages.map{|p|p.updated}.sort.last.rfc3339 %> <%= Person.new("Andrew Murrell").atom %> https://lukeshu.com/blog/ - <% @pages.sort_by{|p| p.date}.reverse.each do |page| %> + <% @pages.sort_by{|p| p.updated}.reverse.each do |page| %> https://lukeshu.com/blog/<%= page.slug %>.html - <%= page.date.rfc3339 %> - <%= page.date.rfc3339 %> + <%= page.updated.rfc3339 %> + <%= page.published.rfc3339 %> <%= page.title %> <%= html_escape(page.content) %> <%= page.author.atom %> diff --git a/bin/index.md.erb b/bin/index.md.erb index 392447e..a9419ba 100644 --- a/bin/index.md.erb +++ b/bin/index.md.erb @@ -2,5 +2,5 @@ title: "<%= @path %>" --- -<% @pages.sort_by{|a|a.published}.each do |a| %> - * - [<%= a.title %>](./<%= a.slug %>.html) (last updated )<% end %> +<% @pages.sort_by{|a|a.published}.reverse.each do |a| %> + * - [<%= a.title %>](<%= a.url %>) (last updated )<% end %> diff --git a/bin/page.html.erb b/bin/page.html.erb index 694d11a..8317282 100644 --- a/bin/page.html.erb +++ b/bin/page.html.erb @@ -9,7 +9,7 @@
-

<%= @page.breadcrumbs %>

+

Andrew D. Murrell