Condense byline info into 'media-left' region; surrount summary with subtitle class
... this is still how we keep the 'whole thing is a link' working.
This commit is contained in:
parent
53e48c6a19
commit
f47855c519
1 changed files with 10 additions and 6 deletions
|
@ -86,17 +86,21 @@
|
||||||
{% if not has_title_paragraph %}
|
{% if not has_title_paragraph %}
|
||||||
<div class="media-left">
|
<div class="media-left">
|
||||||
{{ content.field_image }}
|
{{ content.field_image }}
|
||||||
|
{% if node.bundle == 'blog' and content.field_authors is not empty %}
|
||||||
|
<p class="byline is-mono">
|
||||||
|
By {{ content.field_authors }}<br />
|
||||||
|
On {{ date }}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content content">
|
<div class="media-content content">
|
||||||
<h3 class="title is-5">{{ label }}</h3>
|
<h3 class="title is-5">{{ label }}</h3>
|
||||||
|
<div class="subtitle is-6">
|
||||||
{{ content.field_summary }}
|
{{ content.field_summary }}
|
||||||
{% if node.bundle == 'blog' and content.field_authors is not empty %}
|
</div>
|
||||||
<p class="byline is-mono">Written by {{ content.field_authors }}</p>
|
|
||||||
<p class="byline is-mono">Posted on {{ date }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
<!-- Unexpected extra content -->
|
<!-- Unexpected extra content -->
|
||||||
{{ content|without('field_body_paragraph', 'field_authors', 'uid', 'created') }}
|
{{ content|without('field_body_paragraph', 'field_authors', 'field_image', 'field_summary', 'uid', 'created') }}
|
||||||
|
|
Loading…
Reference in a new issue