view _includes/navigation.html @ 92:a143c3991472

navigation: fix navbar implementation
author Paper <paper@paper.us.eu.org>
date Wed, 19 Jun 2024 04:54:19 -0400
parents eb3bbc61bc17
children
line wrap: on
line source

<div class="navbar drop-shadow-box">
	<div class="navbar-group">
		{% for item in site.data.navigation %}
		<a href="{{ item.link }}" {% if page.url == item.link or page.url contains item.prefix %}class="navbar-item-active"{% else %}class="navbar-item"{% endif %}>{{ item.name }}</a>
		{% endfor %}
	</div>
	<div class="navbar-group">
		{% for item in site.data.navigation-external %}
		<a href="{{ item.link }}" class="navbar-item navbar-right">{{ item.name }}</a>
		{% endfor %}
	</div>
</div>