From f1a70be296317b6cb17757021f1dc6fe9ee6b0b4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 10 Dec 2021 17:43:00 +0000 Subject: [PATCH] fix: spacing between slides and video on talk pages --- .../templates/field--node--field-slides.html.twig | 1 + .../templates/field--node--field-video.html.twig | 1 + .../custom/opdavies/templates/node--talk.html.twig | 10 +++++++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/web/themes/custom/opdavies/templates/field--node--field-slides.html.twig b/web/themes/custom/opdavies/templates/field--node--field-slides.html.twig index a02ace7..a66ac36 100644 --- a/web/themes/custom/opdavies/templates/field--node--field-slides.html.twig +++ b/web/themes/custom/opdavies/templates/field--node--field-slides.html.twig @@ -39,6 +39,7 @@ {% set title_classes = [ label_display == 'visually_hidden' ? 'visually-hidden', + 'mb-2', ] %} diff --git a/web/themes/custom/opdavies/templates/field--node--field-video.html.twig b/web/themes/custom/opdavies/templates/field--node--field-video.html.twig index a02ace7..a66ac36 100644 --- a/web/themes/custom/opdavies/templates/field--node--field-video.html.twig +++ b/web/themes/custom/opdavies/templates/field--node--field-video.html.twig @@ -39,6 +39,7 @@ {% set title_classes = [ label_display == 'visually_hidden' ? 'visually-hidden', + 'mb-2', ] %} diff --git a/web/themes/custom/opdavies/templates/node--talk.html.twig b/web/themes/custom/opdavies/templates/node--talk.html.twig index ea5fd14..ddee039 100644 --- a/web/themes/custom/opdavies/templates/node--talk.html.twig +++ b/web/themes/custom/opdavies/templates/node--talk.html.twig @@ -70,7 +70,7 @@ * in different view modes. */ #} - + {{ title_prefix }} {% if not page %} @@ -89,7 +89,11 @@ {% endif %} - - {{ content }} +
+ + {{ content.body }} +
+ + {{ content|without('body') }}