summaryrefslogtreecommitdiff
path: root/tmpl/index.md.erb.bak
blob: a3ec5477189d1eb99126f4f40d6ce16d1c10fab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
title: "<%= @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 %>