diff --git a/modules/oe_whitelabel_starter_event/templates/node--oe-sc-event--teaser.html.twig b/modules/oe_whitelabel_starter_event/templates/node--oe-sc-event--teaser.html.twig index 94b72061e78b99e857ace54a91a145164cc420c0..bc004c43f5327330e664393a675f1679f8044939 100755 --- a/modules/oe_whitelabel_starter_event/templates/node--oe-sc-event--teaser.html.twig +++ b/modules/oe_whitelabel_starter_event/templates/node--oe-sc-event--teaser.html.twig @@ -1,15 +1,16 @@ {# /** * @file - * Search result template. + * Theme override to display a node of bundle event in the teaser view mode. */ #} {% set _title %} - <a class="text-underline-hover" href="{{ url }}">{{ label }}</a> + <a class="standalone" href="{{ url }}">{{ label }}</a> {% endset %} {% set _content %} <span class="text-muted text-nowrap me-4-5">{{ content.oe_sc_event_dates }}</span> {% endset %} +{% block content %} <article{{attributes}}> {{ pattern('card', { variant: 'search', @@ -18,3 +19,5 @@ image: image, content: _content }) }} +</article> +{% endblock %} diff --git a/modules/oe_whitelabel_starter_news/templates/node--oe-sc-news--teaser.html.twig b/modules/oe_whitelabel_starter_news/templates/node--oe-sc-news--teaser.html.twig index 51cb95a61f580d497f9630740b58843e7fcca018..6650bbca5f729368d42e1bd09696fe7bfd03cf19 100644 --- a/modules/oe_whitelabel_starter_news/templates/node--oe-sc-news--teaser.html.twig +++ b/modules/oe_whitelabel_starter_news/templates/node--oe-sc-news--teaser.html.twig @@ -1,15 +1,16 @@ {# /** * @file - * Search result template. + * Theme override to display a node of bundle news in the teaser view mode. */ #} {% set _title %} - <a class="text-underline-hover" href="{{ url }}">{{ label }}</a> + <a class="standalone" href="{{ url }}">{{ label }}</a> {% endset %} {% set _content %} <span class="text-muted text-nowrap me-4-5">{{ content.oe_publication_date }}</span> {% endset %} +{% block content %} <article{{attributes}}> {{ pattern('card', { variant: 'search', @@ -19,3 +20,4 @@ content: _content }) }} </article> +{% endblock %}