Skip to content

Commit 3c49df5

Browse files
committed
Removed a +1 for months to get the correct hyperlinks
1 parent fd17e07 commit 3c49df5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<% unless sidebar.archives.blank? %>
2-
<h3 class="sidebar_title"><%= sidebar.title %></h3>
3-
<div class="sidebar_body">
4-
<ul id="archives">
5-
<% sidebar.archives.each do |month| %>
6-
<% counter = sidebar.show_count ? "<em>(#{month[:article_count]})</em>" : "" %>
7-
<li>
8-
<%= link_to"#{month[:name]} #{counter}".html_safe, articles_by_month_path( month[:year], "%02i" % (month[:month]+1) ) %>
9-
</li>
10-
<% end %>
11-
</ul>
12-
</div>
13-
<% end %>
2+
<h3 class="sidebar-title"><%= sidebar.title %></h3>
3+
<div class="sidebar-body">
4+
<ul id="archives">
5+
<% sidebar.archives.each do |month| %>
6+
<% counter = sidebar.show_count ? "<em>(#{month[:article_count]})</em>" : "" %>
7+
<li>
8+
<%= link_to"#{month[:name]} #{counter}".html_safe, articles_by_month_path( month[:year], "%02i" % (month[:month]) ) %>
9+
</li>
10+
<% end %>
11+
</ul>
12+
</div>
13+
<% end %>

0 commit comments

Comments
 (0)