diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 2c4dbfa..e25bf6f 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -15,6 +15,10 @@ %table.table.table-condensed.table-striped %tbody - @site.posts.each do |post| + - direction = post.get_front_matter(:dir) %tr - %td{class: post.get_front_matter(:dir)}= link_to post.title, site_post_path(@site, post) + %td{class: direction} + = link_to post.title, site_post_path(@site, post) + %br + %small= post.categories.join(', ') %td= post.date.strftime('%F')