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,12 +94,21 @@
|
|||
<section{{ attributes.addClass(classes) }} data-headerbg="{{ headerbg }}">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="titlebar">
|
||||
<div class="titlebar_title">
|
||||
<h1 class="title is-2">{{ label }}</h1>
|
||||
{% 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>
|
||||
{% if secondary_menu %}
|
||||
<div class="titlebar_links">
|
||||
{{ secondary_menu }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue