Let's try making blog posts light per design

but have other non-specialized content be dark (blue).
This commit is contained in:
benjamin melançon 2018-12-17 10:02:43 -05:00
parent 821741e962
commit ed6fc3cf7a

View file

@ -84,12 +84,14 @@
{% endif %}
{% if not has_title_paragraph %}
{% set headerbg = 'light' %}
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
{% if node.bundle != 'blog' %}
{% set classes = classes|merge(['is-dark']) %}
{% set headerbg = 'dark' %}
{% endif %}
{# Header hero region #}
<section{{ attributes.addClass(classes) }} data-headerbg="transparent">
<section{{ attributes.addClass(classes) }} data-headerbg="{{ headerbg }}">
<div class="hero-body">
<div class="container">
<h1 class="title is-2">{{ label }}</h1>