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:
parent
5a324ae71f
commit
859b8518c0
1 changed files with 7 additions and 7 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue