<% content_for(:title, page.category_name) %>
<%= render 'shared/browse_categories', current_category: page.category %>

<%= page.category_name %>

Sort by
<%= link_to 'date', "?order=date", class: "btn btn-default #{'active' if page.order == :date}" %> <%= link_to 'popularity', "?order=popularity", class: "btn btn-default #{'active' if page.order == :popularity}" %>
<%= render 'asciicasts/previews', asciicasts: page.items, per_row: 2 %> <%= paginate page.items %>