Sha256: 5b235d731f3db4217921ac11eb7f2a4befc7460fd062c6624a4c69ee5d12241b

Contents?: true

Size: 952 Bytes

Versions: 8

Compression:

Stored size: 952 Bytes

Contents

<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' />
  </head>
  <body>
    
    <div id="main" role="main">
      <%= yield %>
    </div>
    
    <aside>
      <h2>Recent Articles</h2>
      <ol>
        <% blog.articles[0...10].each do |article| %>
          <li><a href="<%= article.url %>"><%= article.title %></a> <span><%= article.date.strftime('%b %e') %></span></li>
        <% end %>
      </ol>

      <h2>Tags</h2>
      <ol>
        <% blog.tags.each do |tag, articles| %>
          <li><a href="<%= tag_path tag %>"><%= tag %> (<%= articles.size %>)</a></li>
        <% end %>
      </ol>

      <h2>By Year</h2>
      <ol>
        <% blog.articles.group_by {|a| a.date.year }.each do |year, articles| %>
          <li><a href="<%= blog_year_path year %>"><%= year %> (<%= articles.size %>)</a></li>
        <% end %>
      </ol>
    </aside>
  </body>
</html>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
middleman-blog-3.1.1 lib/middleman-blog/template/source/layout.erb
middleman-blog-3.1.0 lib/middleman-blog/template/source/layout.erb
middleman-blog-3.0.0 lib/middleman-blog/template/source/layout.erb
middleman-blog-3.0.0.rc.4 lib/middleman-blog/template/source/layout.erb
middleman-blog-3.0.0.rc.3 lib/middleman-blog/template/source/layout.erb
middleman-blog-3.0.0.rc.2 lib/middleman-blog/template/source/layout.erb
middleman-blog-3.0.0.rc.1 lib/middleman-blog/template/source/layout.erb
middleman-blog-3.0.0.beta.3 lib/middleman-blog/template/source/layout.erb