summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 13:20:32 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 13:20:32 -0500
commite8197dabd76b55f2c21e92c07fc7080d2db8d7df (patch)
tree8af5ebebf2c95ee5ec0eff223851cc7277881236 /lib
parent9e1666f4b6f924e9826f796b423a21958e749e77 (diff)
index pages: sort by "most recently updated" instead of "publication order"
Diffstat (limited to 'lib')
-rw-r--r--lib/page_index.rb2
1 files changed, 1 insertions, 1 deletions
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 += "<section><h#{depth}>[#{atom_title}](#{cururl.route_to(url)})</h#{depth}>\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"