Sha256: 1391890da8a60fbbdb5cc7bf2f015d009d1289eae8ec282f1fe5ec150f86ced8

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

<h1>Archive for
  <% if @day %>
    <%= Date.new(@year, @month, @day).strftime('%b %e %Y') %>
  <% elsif @month %>
    <%= Date.new(@year, @month, 1).strftime('%b %Y') %>
  <% else %>
    <%= @year %>
  <% end %>
</h1>

<ul>
  <% @articles.each_with_index do |article, i| %>
  <li><a href="<%= article.url %>"><%= article.title %></a> <span><%= article.date.strftime('%b %e') %></span></li>
   <% end %>
</ul>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
middleman-blog-3.0.0 lib/middleman-blog/template/source/calendar.html.erb
middleman-blog-3.0.0.rc.4 lib/middleman-blog/template/source/calendar.html.erb
middleman-blog-3.0.0.rc.3 lib/middleman-blog/template/source/calendar.html.erb
middleman-blog-3.0.0.rc.2 lib/middleman-blog/template/source/calendar.html.erb
middleman-blog-3.0.0.rc.1 lib/middleman-blog/template/source/calendar.html.erb
middleman-blog-3.0.0.beta.3 lib/middleman-blog/template/source/calendar.html.erb