diff options
Diffstat (limited to 'tmpl/index.md.erb')
-rw-r--r-- | tmpl/index.md.erb | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tmpl/index.md.erb b/tmpl/index.md.erb index a3ec547..680647d 100644 --- a/tmpl/index.md.erb +++ b/tmpl/index.md.erb @@ -1,12 +1,7 @@ --- -title: "<%= @title %>" +title: "<%= atom_title %>" class: "index" --- -<% @sections.keys.sort.each do |path| %> -<% unless path.empty? %>## [<%= @sections[path]['head'] %>](<%= path %>)<% end %> - -<% @sections[path]['body'].sort_by{|a|a.published}.reverse.each do |a| %> - * <span><a <% if a.is_a?(ExternPage) %>class="external" <% end %>href="<%= @url.route_to(a.url) %>" title="Published on <%= a.published.strftime('%Y-%m-%d') %><% if a.updated != a.published %> (updated on<%= a.updated.strftime('%Y-%m-%d') %>)<% end %>"><%= a.title %></a></span><span><% a.tags.each do |t| %><%= t.html %><% end %></span><% end %> - -<% end %> +<% index_pages.sort_by{|a|a.atom_published}.reverse.each do |a| %> + * <span><a <% if a.is_a?(RemotePage) %>class="external" <% end %>href="<%= Config::get.url.route_to(a.url) %>" title="Published on <%= a.atom_published.strftime('%Y-%m-%d') %><% if a.atom_updated != a.atom_published %> (updated on<%= a.atom_updated.strftime('%Y-%m-%d') %>)<% end %>"><%= a.title %></a></span><span><% a.atom_categories.each do |t| %><%= t.html %><% end %></span><% end %> |