Sha256: 827224184b29cb2e283f1cdc1a88febd66384abc7e194316bc1f539e09fb7275

Contents?: true

Size: 317 Bytes

Versions: 6

Compression:

Stored size: 317 Bytes

Contents

<h1><%= context.year %></h1>
<ul>
    <% current = nil -%>
    <% for post in posts -%>
        <% if post.month != current -%>
            <li><a href="<%= post.created.strftime('/%Y/%m/') %>"><%= post.created.strftime '%B' %></a></li>
            <% current = post.month -%>
        <% end -%>
    <% end -%>
</ul>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
zzot-semi-static-0.0.2 test/source/indices/year.erb
zzot-semi-static-0.0.3 test/source/indices/year.erb
zzot-semi-static-0.0.4 test/source/indices/year.erb
zzot-semi-static-0.0.5 test/source/indices/year.erb
zzot-semi-static-0.0.6 test/source/indices/year.erb
zzot-zzot-semi-static-0.0.1 test/source/indices/year.erb