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.md.erb | |
parent | b864379651d4bfe3d05f98350b720794ffa2806a (diff) |
indexes
Diffstat (limited to 'bin/index.md.erb')
-rw-r--r-- | bin/index.md.erb | 4 |
1 files changed, 2 insertions, 2 deletions
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| %> - * <time><%= a.published.strftime('%Y-%m-%d') %></time> - [<%= a.title %>](./<%= a.slug %>.html) (last updated <time><%= a.updated.strftime('%Y-%m-%d') %></time>)<% end %> +<% @pages.sort_by{|a|a.published}.reverse.each do |a| %> + * <time><%= a.published.strftime('%Y-%m-%d') %></time> - [<%= a.title %>](<%= a.url %>) (last updated <time><%= a.updated.strftime('%Y-%m-%d') %></time>)<% end %> |