Clean up layout template
... but nah we're taking this down to the paragraph level
This commit is contained in:
parent
90cb6799a4
commit
54f51b569b
1 changed files with 19 additions and 15 deletions
|
@ -8,25 +8,29 @@
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
* @ingroup themeable
|
* @ingroup themeable
|
||||||
|
TODO set a variable for background image so we can use base_path rather than /
|
||||||
|
setAttribute('data-headerbg', 'transparent').setAttribute('style', 'background-image:url(/themes/custom/agarica/patternlibrary/agaric/images/fpo-video-poster.png)')
|
||||||
|
{% if is_front %}
|
||||||
|
{% set classes = classes|merge(['hero-main', 'is-large']) %}
|
||||||
|
{% endif %}
|
||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
{% set bundle = content['#node'].bundle %}
|
|
||||||
|
|
||||||
{% set header_section_attributes = create_attribute({'class': ['hero', 'is-dark']}) %}
|
|
||||||
{% if is_front %}
|
|
||||||
{# TODO set a variable for background image so we can use base_path rather than / #}
|
|
||||||
{% set header_section_attributes = header_section_attributes.addClass('hero-main is-large').setAttribute('data-headerbg', 'transparent').setAttribute('style', 'background-image:url(/themes/custom/agarica/patternlibrary/agaric/images/fpo-video-poster.png)') %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if content %}
|
{% if content %}
|
||||||
<section{{ attributes header_section_attributes }}>
|
|
||||||
|
{% set bundle = content['#node'].bundle %}
|
||||||
|
{% set classes = [ 'hero', 'hero-' ~ bundle|replace({"_": "-"}) ] %}
|
||||||
|
{# expected if statement would start here #}
|
||||||
|
{% set classes = classes|merge(['is-dark']) %}
|
||||||
|
|
||||||
|
<section{{ attributes.addClass(classes) }}>
|
||||||
{# Header hero region #}
|
{# Header hero region #}
|
||||||
<div class="hero-body">
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="titlebar">
|
<div class="titlebar">
|
||||||
{{ content.title }}
|
{{ content.title }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
{{ content.content }}
|
|
||||||
|
{{ content.content }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue