Archives
<% menu = [ ['All', sorted_articles.size], ['Technical', technical_articles.size], ['Personal', personal_articles.size], ] %>-
<% menu.each do |menu_item|
label, count = menu_item
path = (label != "All" ? '/' + label.downcase : '') + "/articles/"
%>
- ><%= label %> (<%= count %>) <% end %>
-
<%= yield %>