From e8197dabd76b55f2c21e92c07fc7080d2db8d7df Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 23 Dec 2017 13:20:32 -0500 Subject: index pages: sort by "most recently updated" instead of "publication order" --- lib/page_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/page_index.rb b/lib/page_index.rb index 585fd57..42c9e21 100644 --- a/lib/page_index.rb +++ b/lib/page_index.rb @@ -59,7 +59,7 @@ class IndexPage < LocalPage unless depth <= 1 ret += "
[#{atom_title}](#{cururl.route_to(url)})\n\n" end - for page in index_pages.select{|page|not page.is_a?(IndexPage)}.sort_by{|page|page.atom_published} + for page in index_pages.select{|page|not page.is_a?(IndexPage)}.sort_by{|page|page.atom_updated}.reverse ret += page.index_link(cururl, depth+1) end ret += "\n" -- cgit v1.1-4-g5e80