Format source code: Indent contents of if statement
This commit is contained in:
parent
bb3305e14a
commit
52017beec2
1 changed files with 15 additions and 15 deletions
|
@ -84,22 +84,22 @@
|
|||
{% 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) }}>
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<h1 class="title is-2">{{ label }}</h1>
|
||||
{% if content.field_authors is not empty %}
|
||||
<p class="byline is-mono">Written by {{ content.field_authors }}</p>
|
||||
<p class="byline is-mono">Posted on {{ date }}</p>
|
||||
{% endif %}
|
||||
{% 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) }}>
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<h1 class="title is-2">{{ label }}</h1>
|
||||
{% if content.field_authors is not empty %}
|
||||
<p class="byline is-mono">Written by {{ content.field_authors }}</p>
|
||||
<p class="byline is-mono">Posted on {{ date }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
<section class="section" data-headerbg="light">
|
||||
|
|
Loading…
Reference in a new issue