From f47855c519596760bd4e0d595a3a231f9c13f507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 10 Dec 2018 18:07:43 -0500 Subject: [PATCH] Condense byline info into 'media-left' region; surrount summary with subtitle class ... this is still how we keep the 'whole thing is a link' working. --- agaric/templates/layout/node--card.html.twig | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/agaric/templates/layout/node--card.html.twig b/agaric/templates/layout/node--card.html.twig index 0a87c94..e896d2e 100644 --- a/agaric/templates/layout/node--card.html.twig +++ b/agaric/templates/layout/node--card.html.twig @@ -86,17 +86,21 @@ {% if not has_title_paragraph %}
{{ content.field_image }} + {% if node.bundle == 'blog' and content.field_authors is not empty %} + + {% endif %}

{{ label }}

- {{ content.field_summary }} - {% if node.bundle == 'blog' and content.field_authors is not empty %} - - - {% endif %} +
+ {{ content.field_summary }} +
{% endif %} -{{ content|without('field_body_paragraph', 'field_authors', 'uid', 'created') }} +{{ content|without('field_body_paragraph', 'field_authors', 'field_image', 'field_summary', 'uid', 'created') }}