.cardGeneric - if defined?(content) && content.present? = link_to content.url do .card{class: css + card_css_class(content)} - if content.image.present? = image_tag content.image_url, alt: content.title, title: content.title, class: 'card-img-top mx-auto mx-md-0 img-fluid' - else .line-top .card-body %h2.card-title= content.title %p.card-text= content.description .line-bottom