Fix title area styling for blog posts
This commit is contained in:
parent
bf3bc6c284
commit
cdeb17ff7d
1 changed files with 9 additions and 7 deletions
|
@ -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 %}
|
||||||
<section{{ attributes.addClass(classes) }}>
|
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
|
||||||
|
{% if node.bundle != 'blog' %}
|
||||||
|
{% set classes = classes|merge(['is-dark']) %}
|
||||||
|
{% endif %}
|
||||||
{# Header hero region #}
|
{# Header hero region #}
|
||||||
|
<section{{ attributes.addClass(classes) }}>
|
||||||
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue