layout: base.html


<% content_for :page_content do %>

<%= include 'header.html' %>
<% site.data.subs.sort_by {|cat| cat.name}.each do |cat| %>
  <% next if cat.posts.empty? %>
  <section class="category-posts">
    <h2>
      <a href="<%=site.url_for cat %>/index.html" rel="category"><%=cat.display_name%></a>
    </h2>
    <ul class="posts-list">
      <% cat.posts.take(10).each do |p| %>
      <li>
        <a href="<%=p.url%>"><%=html_escape p.title%></a>
        <small><time><%=p.date%></time></small>
        <br />
      </li>
      <% end %>
    </ul>
  </section>
<% end %>
<br />

<% end %>