Format source code: Indent contents of if statement

This commit is contained in:
benjamin melançon 2018-11-19 20:03:51 -05:00
parent bb3305e14a
commit 52017beec2

View file

@ -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">