mostrar la categoria del post
This commit is contained in:
parent
763320cd5e
commit
d8823fa6f1
1 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,10 @@
|
||||||
%table.table.table-condensed.table-striped
|
%table.table.table-condensed.table-striped
|
||||||
%tbody
|
%tbody
|
||||||
- @site.posts.each do |post|
|
- @site.posts.each do |post|
|
||||||
|
- direction = post.get_front_matter(:dir)
|
||||||
%tr
|
%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')
|
%td= post.date.strftime('%F')
|
||||||
|
|
Loading…
Reference in a new issue