5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:31:41 +00:00

Mostrar el tipo de artículo

This commit is contained in:
f 2021-09-15 21:00:48 -03:00
parent 5a324ae71f
commit 859b8518c0

View file

@ -104,13 +104,13 @@
%span{ lang: post.locale, dir: dir }= post.title
- if post.front_matter['draft'].present?
%span.badge.badge-primary= I18n.t('posts.attributes.draft.label')
- if post.front_matter['categories'].present?
%br
%small
- post.front_matter['categories'].each do |category|
= link_to site_posts_path(@site, **@filter_params.merge(category: category)) do
%span{ lang: post.locale, dir: dir }= category
= '/' unless post.front_matter['categories'].last == category
%br
%small
= link_to @site.layouts[post.layout].humanized_name, site_posts_path(@site, **@filter_params.merge(layout: post.layout))
- post.front_matter['categories']&.each do |category|
= link_to site_posts_path(@site, **@filter_params.merge(category: category)) do
%span{ lang: post.locale, dir: dir }= category
= '/' unless post.front_matter['categories'].last == category
%td.text-nowrap
= post.created_at.strftime('%F')