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:
parent
528f591f5a
commit
49e27739c8
1 changed files with 31 additions and 0 deletions
31
agaric/templates/layout/page.html.twig
Normal file
31
agaric/templates/layout/page.html.twig
Normal 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 %}
|
Loading…
Reference in a new issue