5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-06 13:55:46 +00:00

mostrar la categoria del post

This commit is contained in:
f 2018-02-19 17:13:49 -03:00
parent 763320cd5e
commit d8823fa6f1
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -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')