From 9917ceec90df662ae9532f5976fbadbf4d53a81a Mon Sep 17 00:00:00 2001 From: rdrew Date: Thu, 9 Oct 2025 12:50:03 -0300 Subject: [PATCH] facet hide --- templates/layout/region--sidebar.html.twig | 3 -- .../layout/region--sidebar.html.twig.new | 31 +++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100755 templates/layout/region--sidebar.html.twig.new diff --git a/templates/layout/region--sidebar.html.twig b/templates/layout/region--sidebar.html.twig index 1b08d79..2bbf576 100755 --- a/templates/layout/region--sidebar.html.twig +++ b/templates/layout/region--sidebar.html.twig @@ -23,9 +23,6 @@ {% if content %} - {##} -
{{ content }} -
{% endif %} diff --git a/templates/layout/region--sidebar.html.twig.new b/templates/layout/region--sidebar.html.twig.new new file mode 100755 index 0000000..1b08d79 --- /dev/null +++ b/templates/layout/region--sidebar.html.twig.new @@ -0,0 +1,31 @@ +{# +/** + * @file + * Olivesbdh's theme override to display the sidebar region. + * + * Available variables: + * - content: The content for this region, typically blocks. + * - attributes: HTML attributes for the region
. + * - region: The name of the region variable as defined in the theme's + * .info.yml file. + * + * @see template_preprocess_region() + */ +#} +{% + set classes = [ + 'region', + 'region--' ~ region|clean_class, + ] +%} + +{{ attach_library('olivesbdh/sidebar') }} + +{% if content %} + + {##} +
+ {{ content }} +
+ +{% endif %}