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,10 +104,10 @@
|
||||||
%span{ lang: post.locale, dir: dir }= post.title
|
%span{ lang: post.locale, dir: dir }= post.title
|
||||||
- if post.front_matter['draft'].present?
|
- if post.front_matter['draft'].present?
|
||||||
%span.badge.badge-primary= I18n.t('posts.attributes.draft.label')
|
%span.badge.badge-primary= I18n.t('posts.attributes.draft.label')
|
||||||
- if post.front_matter['categories'].present?
|
|
||||||
%br
|
%br
|
||||||
%small
|
%small
|
||||||
- post.front_matter['categories'].each do |category|
|
= 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
|
= link_to site_posts_path(@site, **@filter_params.merge(category: category)) do
|
||||||
%span{ lang: post.locale, dir: dir }= category
|
%span{ lang: post.locale, dir: dir }= category
|
||||||
= '/' unless post.front_matter['categories'].last == category
|
= '/' unless post.front_matter['categories'].last == category
|
||||||
|
|
Loading…
Reference in a new issue