Add byline with date if authors field populated

(This should only be blogs that this is possible, currently.)
This commit is contained in:
benjamin melançon 2018-11-17 17:18:39 -05:00
parent d04edfc23b
commit 9505168666

View file

@ -93,7 +93,10 @@
<div class="hero-body">
<div class="container">
<h1 class="title is-2">{{ label }}</h1>
<p class="byline is-mono">Written by </p>
{% 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>
</section>