Print the secondary menu in the titlebar area
because our styleguide is annoying, we had to add the titlebar section to things that don't have it in the styleguide, to be able to add the titlebar links part when the secondary menu is there. because Drupal is annoying, it prints the titlebar_links part whether there's any secondary menu or not. Ref #110
This commit is contained in:
parent
cd0a7e0a1a
commit
49295ecb73
1 changed files with 14 additions and 5 deletions
|
@ -94,11 +94,20 @@
|
||||||
<section{{ attributes.addClass(classes) }} data-headerbg="{{ headerbg }}">
|
<section{{ attributes.addClass(classes) }} data-headerbg="{{ headerbg }}">
|
||||||
<div class="hero-body">
|
<div class="hero-body">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title is-2">{{ label }}</h1>
|
<div class="titlebar">
|
||||||
{% if content.field_authors is not empty %}
|
<div class="titlebar_title">
|
||||||
<p class="byline is-mono">Written by {{ content.field_authors }}</p>
|
<h1 class="title is-2">{{ label }}</h1>
|
||||||
<p class="byline is-mono">Posted on {{ date }}</p>
|
{% if content.field_authors is not empty %}
|
||||||
{% endif %}
|
<p class="byline is-mono">Written by {{ content.field_authors }}</p>
|
||||||
|
<p class="byline is-mono">Posted on {{ date }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% if secondary_menu %}
|
||||||
|
<div class="titlebar_links">
|
||||||
|
{{ secondary_menu }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue