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.
|
||||
*/
|
||||
#}
|
||||
{% 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 has_title_paragraph = false %}
|
||||
|
@ -87,11 +84,16 @@
|
|||
{% endif %}
|
||||
|
||||
{% 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) }}>
|
||||
{# Header hero region #}
|
||||
<div class="container">
|
||||
<div class="titlebar">
|
||||
{{ label }}
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<h1 class="title is-2">{{ label }}</h1>
|
||||
<p class="byline is-mono">Written by </p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Reference in a new issue