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:
benjamin melançon 2018-12-10 18:07:43 -05:00
parent 53e48c6a19
commit f47855c519

View file

@ -86,17 +86,21 @@
{% if not has_title_paragraph %}
<div class="media-left">
{{ 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 class="media-content content">
<h3 class="title is-5">{{ label }}</h3>
{{ content.field_summary }}
{% if node.bundle == 'blog' and 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 class="subtitle is-6">
{{ content.field_summary }}
</div>
</div>
{% endif %}
</a>
<!-- 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') }}