5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 09:06:21 +00:00

algunas categorias son de texto

fixes #1537
fixes #1538
fixes #1539
fixes #1541
This commit is contained in:
f 2021-05-11 15:27:54 -03:00
parent a421a79840
commit 404436e294

View file

@ -98,7 +98,7 @@
%small %small
- categories = post.categories.respond_to?(:has_many) ? post.categories.has_many : post.categories.value - categories = post.categories.respond_to?(:has_many) ? post.categories.has_many : post.categories.value
- categories.each do |c| - categories.each do |c|
- c.read - c.read if c.respond_to? :read
= link_to site_posts_path(@site, category: (c.respond_to?(:uuid) ? c.uuid.value : c)) do = link_to site_posts_path(@site, category: (c.respond_to?(:uuid) ? c.uuid.value : c)) do
%span{ lang: post.lang.value, dir: dir }= (c.respond_to?(:title) ? c.title.value : c) %span{ lang: post.lang.value, dir: dir }= (c.respond_to?(:title) ? c.title.value : c)
- unless categories.last == c - unless categories.last == c