% unless sidebar.archives.blank? %>
<% sidebar.archives.each do |month| %>
<% counter = sidebar.show_count ? "(#{month[:article_count]})" : '' %>
-
<%= link_to "#{month[:name]} #{counter}".html_safe, articles_by_month_path(month[:year], '%02i' % month[:month]) %>
<% end %>
<% end %>