paragon_themekit-8.x-1.0-alpha13/starterkit/README/examples/region/header/example--region--header.html.twig
starterkit/README/examples/region/header/example--region--header.html.twig
{#
/**
* @file
* Theme override to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region <div>.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*/
#}
{% extends "@partials/region/region.html.twig" %}
{% block region %}
{%
set classes = [
'grid-container',
'fluid',
'padding-small-default--top',
'padding-small-default--bottom',
is_front ? 'is-front' : ''
]
%}
{% if content %}
<div class="{{ classes|join(' ') }}">
<div class="grid-x grid-margin-x align-center">
{{ content }}
</div>
</div>
{% endif %}
{% endblock %}
