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 %}