Override & extend Octavia's layout to override navbar portion (which comes from Bulma)

So far, we're just removing an unused class.
This commit is contained in:
benjamin melançon 2018-08-22 15:36:55 -04:00
parent 528f591f5a
commit 49e27739c8

View file

@ -0,0 +1,31 @@
{% extends "@octavia/layout/page.html.twig" %}
{% block navbar %}
{% if page.navbar_branding or page.navbar_social or page.primary_menu %}
{# Top navbar #}
<nav class="navbar" id="navbar">
<div class="navbar-brand">
{% if page.navbar_branding %}
<div class="navbar-item">
{{ page.navbar_branding }}
</div>
{% endif %}
<div id="js-navbar-burger" class="navbar-burger burger" data-target="navbar-menu">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div id="js-navbar-menu" class="navbar-menu">
{% if page.navbar_social %}
<div class="navbar-start">
{{ page.navbar_social }}
</div>
{% endif %}
{% if page.primary_menu %}
{{ page.primary_menu }}
{% endif %}
</div>
</nav>
{% endif %}
{% endblock navbar %}