Commit df92b63a authored by Hiro's avatar Hiro 🏄
Browse files

Fix paths and relative urls in navbar

parent d4d382eb
......@@ -12,11 +12,17 @@
<div class="collapse navbar-collapse hamburger-menu" id="navbarSupportedContent">
<div class="mx-auto pt-2 pl-4">
<ul class="navbar-nav">
{% set menubag = 'menu+' + this.alt %}
{% set menubag = 'menu+' + this.alt %}
{% for id, item in bag(menubag).items() %}
<li{% if this.is_child_of(item.path) %} class="nav-item active" {% else %} class="nav-item"{% endif %}>
<a class="nav-link" href="{{ item.path|url }}">{{ item.label }}
{% if this.is_child_of(item.path) %}
<li{% if this.is_child_of(item.path) %} class="nav-item active" {% else %} class="nav-item"{% endif %}>
{% set link = site.get(item.path) %}
{% if link %}
<a class="nav-link" href="{{ item.path|url }}">
{% else %}
<a class="nav-link" href="{{ item.path }}">
{% endif %}
{{ item.label }}
{% if this.path == item.path %}
<span class="sr-only">(current)</span>
{% endif %}
</a>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment