view _includes/navigation.html @ 88:bac91b82b969

code: public release of Minori
author Paper <paper@paper.us.eu.org>
date Tue, 11 Jun 2024 14:39:52 -0400
parents eb3bbc61bc17
children a143c3991472
line wrap: on
line source

<div class="navbar drop-shadow-box">
	{% 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 class="navbar-right">
		{% comment %}
			This has to all be on one line or else browsers add extra spacing. argh. 
		{% endcomment %}
		{% for item in site.data.navigation-external %}<a href="{{ item.link }}" class="navbar-item">{{ item.name }}</a>{% endfor %}
	</div>
</div>