Let's try making blog posts light per design
but have other non-specialized content be dark (blue).
This commit is contained in:
parent
821741e962
commit
ed6fc3cf7a
1 changed files with 3 additions and 1 deletions
|
@ -84,12 +84,14 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not has_title_paragraph %}
|
{% if not has_title_paragraph %}
|
||||||
|
{% set headerbg = 'light' %}
|
||||||
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
|
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
|
||||||
{% if node.bundle != 'blog' %}
|
{% if node.bundle != 'blog' %}
|
||||||
{% set classes = classes|merge(['is-dark']) %}
|
{% set classes = classes|merge(['is-dark']) %}
|
||||||
|
{% set headerbg = 'dark' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# Header hero region #}
|
{# Header hero region #}
|
||||||
<section{{ attributes.addClass(classes) }} data-headerbg="transparent">
|
<section{{ attributes.addClass(classes) }} data-headerbg="{{ headerbg }}">
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title is-2">{{ label }}</h1>
|
<h1 class="title is-2">{{ label }}</h1>
|
||||||
|
|
Loading…
Reference in a new issue