Fix title area styling for blog posts

This commit is contained in:
benjamin melançon 2018-11-17 14:50:38 -05:00
parent bf3bc6c284
commit cdeb17ff7d

View file

@ -70,9 +70,6 @@
* in different view modes. * in different view modes.
*/ */
#} #}
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
{# expected if statement would start here #}
{% set classes = classes|merge(['is-dark']) %}
{% set title_paragraph_index = null %} {% set title_paragraph_index = null %}
{% set has_title_paragraph = false %} {% set has_title_paragraph = false %}
@ -87,11 +84,16 @@
{% endif %} {% endif %}
{% if not has_title_paragraph %} {% if not has_title_paragraph %}
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
{% if node.bundle != 'blog' %}
{% set classes = classes|merge(['is-dark']) %}
{% endif %}
{# Header hero region #}
<section{{ attributes.addClass(classes) }}> <section{{ attributes.addClass(classes) }}>
{# Header hero region #} <div class="hero-body">
<div class="container"> <div class="container">
<div class="titlebar"> <h1 class="title is-2">{{ label }}</h1>
{{ label }} <p class="byline is-mono">Written by </p>
</div> </div>
</div> </div>
</section> </section>