.row .col = render 'layouts/breadcrumb', crumbs: [ link_to(t('sites.index'), sites_path), @site.name, t('posts.index') ] .row .col %h1= @site.name .row .col = link_to t('posts.new'), new_site_post_path(@site), class: 'btn btn-success' .row .col %table.table.table-condensed.table-striped %tbody - @site.posts.each do |post| - direction = post.get_front_matter(:dir) %tr %td{class: direction} = link_to post.title, site_post_path(@site, post) %br %small= post.categories.join(', ') %td= post.date.strftime('%F')