Add byline with date if authors field populated
(This should only be blogs that this is possible, currently.)
This commit is contained in:
parent
d04edfc23b
commit
9505168666
1 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,10 @@
|
||||||
<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>
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue