diff --git a/web/themes/contrib/civictheme/templates/layout/layout--single-column-contained.html.twig b/web/themes/contrib/civictheme/templates/layout/layout--single-column-contained.html.twig index d15ad231f..087424686 100644 --- a/web/themes/contrib/civictheme/templates/layout/layout--single-column-contained.html.twig +++ b/web/themes/contrib/civictheme/templates/layout/layout--single-column-contained.html.twig @@ -15,8 +15,8 @@ #} {% if content %} -
-
+
+
{% block content %}
{{ content }} diff --git a/web/themes/contrib/civictheme/templates/layout/layout--single-column.html.twig b/web/themes/contrib/civictheme/templates/layout/layout--single-column.html.twig index 2ddfd8a5b..1ef8bc825 100644 --- a/web/themes/contrib/civictheme/templates/layout/layout--single-column.html.twig +++ b/web/themes/contrib/civictheme/templates/layout/layout--single-column.html.twig @@ -15,8 +15,8 @@ #} {% if content %} -
-
+
+
{% block content %}
{{ content }} diff --git a/web/themes/contrib/civictheme/templates/layout/layout--three-columns.html.twig b/web/themes/contrib/civictheme/templates/layout/layout--three-columns.html.twig index 005678a95..1898e9815 100644 --- a/web/themes/contrib/civictheme/templates/layout/layout--three-columns.html.twig +++ b/web/themes/contrib/civictheme/templates/layout/layout--three-columns.html.twig @@ -4,18 +4,18 @@ * Layout component. * * Variables: - * - content_top: Content top slot. - * - sidebar_top_left: Top left sidebar slot. - * - sidebar_top_left_attributes: Top left sidebar attributes. - * - sidebar_top_right: Top right sidebar slot. - * - sidebar_top_right_attributes: Top right sidebar attributes. - * - content: Content slot. + * - content.content_top: Content top slot. + * - content.sidebar_top_left: Top left sidebar slot. + * - content.sidebar_top_left_attributes: Top left sidebar attributes. + * - content.sidebar_top_right: Top right sidebar slot. + * - content.sidebar_top_right_attributes: Top right sidebar attributes. + * - content.main: Content slot. * - content_attributes: Content attributes. - * - sidebar_bottom_left: Bottom left sidebar slot. - * - sidebar_bottom_left_attributes: Bottom left sidebar attributes. - * - sidebar_bottom_right: Bottom right sidebar slot. - * - sidebar_bottom_right_attributes: Bottom right sidebar attributes. - * - content_bottom: Content bottom slot. + * - content.sidebar_bottom_left: Bottom left sidebar slot. + * - content.sidebar_bottom_left_attributes: Bottom left sidebar attributes. + * - content.sidebar_bottom_right: Bottom right sidebar slot. + * - content.sidebar_bottom_right_attributes: Bottom right sidebar attributes. + * - content.content_bottom: Content bottom slot. * - hide_sidebar_left: Whether to force hide the left sidebar. * - hide_sidebar_right: Whether to force hide the right sidebar. * - is_contained: Whether the page is to be contained. @@ -46,58 +46,58 @@ {% set modifier_class = modifier_class|trim %} {% if content %} -
+
{% block content_top %} - {% if content_top is not empty %} - {{ content_top }} + {% if content.content_top is not empty %} + {{- content.content_top|raw -}} {% endif %} {% endblock %}
{% if content.main is not empty %} {% block content %} -
- {{ content.main }} +
+ {{- content.main|raw -}}
{% endblock %} {% endif %} {% if content.sidebar_top_left is not empty and has_sidebar_left %} {% block sidebar_top_left %} -
{% block content_bottom %} - {% if content_bottom is not empty %} - {{ content_bottom }} + {% if content.content_bottom is not empty %} + {{- content.content_bottom|raw -}} {% endif %} {% endblock %}