Mercurial > web
comparison _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 |
comparison
equal
deleted
inserted
replaced
91:caf449c570be | 92:a143c3991472 |
---|---|
1 <div class="navbar drop-shadow-box"> | 1 <div class="navbar drop-shadow-box"> |
2 {% for item in site.data.navigation %} | 2 <div class="navbar-group"> |
3 {% for item in site.data.navigation %} | |
3 <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> | 4 <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> |
4 {% endfor %} | 5 {% endfor %} |
5 <div class="navbar-right"> | 6 </div> |
6 {% comment %} | 7 <div class="navbar-group"> |
7 This has to all be on one line or else browsers add extra spacing. argh. | 8 {% for item in site.data.navigation-external %} |
8 {% endcomment %} | 9 <a href="{{ item.link }}" class="navbar-item navbar-right">{{ item.name }}</a> |
9 {% for item in site.data.navigation-external %}<a href="{{ item.link }}" class="navbar-item">{{ item.name }}</a>{% endfor %} | 10 {% endfor %} |
10 </div> | 11 </div> |
11 </div> | 12 </div> |