From d8823fa6f1be871c318e802719729fe22b9205ae Mon Sep 17 00:00:00 2001 From: f Date: Mon, 19 Feb 2018 17:13:49 -0300 Subject: [PATCH] mostrar la categoria del post --- app/views/posts/index.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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')