lego/templates/pagenav.html
2019-11-11 17:04:58 +01:00

20 lines
818 B
HTML

<div class="container-fluid border-bottom border-light sticky-top bg-white">
<div class="row flex-xl-nowrap {{ bag('alternatives', this.alt, 'order') }}">
<div class="row col-12 justify-content-center">
<ul class="nav">
{% set menubag = this.section_id %}
{% for id, item in bag(menubag).items() %}
<li{% if this.path == '/' + item.path %} class="nav-item active border-active" {% else %} class="nav-item" {% endif %}>
{% set item_path = site.get(item.path) %}
<a class="nav-link" href="{{ this.url_to(item_path, alt=this.alt) }}">{{ _(item.label) }}
{% if this.path == '/' + item.path %}
<span class="sr-only">(current)</span>
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>