.cardGeneric - if content %a{:href=>"/"+t("activerecord.models.#{content.type.underscore}.slug")+"/"+content.slug} - if content.respond_to?(:image) && content.image.present? .card.card-image{:class => content.css_class} = image_tag content.image_url,:alt=>content.title,:title=>content.title,:class=>"card-img-top mx-auto mx-md-0 img-fluid" .card-body %h2.card-title= content.title %div - if search_context(); %footer.blockquote-footer %cite="publicado em " + t("activerecord.models.#{content.type.underscore}.other") .line-bottom - else .card.card-noimage{:class => content.css_class} .card-body .line-top %h2.card-title= content.title %p.card-text= content.title_summary -# - if !content.image.nil? -# .line-bottom %div - if search_context(); %footer.blockquote-footer %cite="publicado em " + t("activerecord.models.#{content.type.underscore}.other")