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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not has_title_paragraph %}
|
{% if not has_title_paragraph %}
|
||||||
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
|
{% set classes = [ 'hero', 'hero-' ~ node.bundle|replace({"_": "-"}) ] %}
|
||||||
{% if node.bundle != 'blog' %}
|
{% if node.bundle != 'blog' %}
|
||||||
{% set classes = classes|merge(['is-dark']) %}
|
{% set classes = classes|merge(['is-dark']) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# Header hero region #}
|
{# Header hero region #}
|
||||||
<section{{ attributes.addClass(classes) }}>
|
<section{{ attributes.addClass(classes) }}>
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title is-2">{{ label }}</h1>
|
<h1 class="title is-2">{{ label }}</h1>
|
||||||
{% if content.field_authors is not empty %}
|
{% if content.field_authors is not empty %}
|
||||||
<p class="byline is-mono">Written by {{ content.field_authors }}</p>
|
<p class="byline is-mono">Written by {{ content.field_authors }}</p>
|
||||||
<p class="byline is-mono">Posted on {{ date }}</p>
|
<p class="byline is-mono">Posted on {{ date }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
</section>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<section class="section" data-headerbg="light">
|
<section class="section" data-headerbg="light">
|
||||||
|
|
Loading…
Reference in a new issue