feat: Even *more* adaptive navbar
Oh and icons can be disabled without the nav turning into shit
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
<header id="site-nav">
|
||||
<nav>
|
||||
<a id="title" href="{{ get_url(path='') }}">
|
||||
<a id="home" href="{{ get_url(path='') }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
<i class="bi bi-house"></i>
|
||||
<span>{{ config.title }}</span>
|
||||
{% else %}
|
||||
{{ config.title }}
|
||||
{% endif %}
|
||||
{{ config.title }}
|
||||
</a>
|
||||
<ul>
|
||||
{% for link in config.extra.nav.links %}
|
||||
@ -13,22 +15,26 @@
|
||||
{% if config.extra.nav.icons %}
|
||||
{% if link.icon %}
|
||||
<i class="bi bi-{{ link.icon }}"></i>
|
||||
<span>{{ link.name }}</span>
|
||||
{% else %}
|
||||
{{ link.name }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ link.name }}
|
||||
{% endif %}
|
||||
{{ link.name }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if config.extra.nav.show_feed %}
|
||||
<li>
|
||||
<a href="{{ get_url(path='') }}/{{ config.feed_filename }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
<i class="bi bi-rss"></i>
|
||||
{% endif %}
|
||||
Feed
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% if config.extra.nav.show_feed %}
|
||||
<a id="feed" href="{{ get_url(path='') }}/{{ config.feed_filename }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
<i class="bi bi-rss"></i>
|
||||
<span class="link-name">Feed</span>
|
||||
{% else %}
|
||||
Feed
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user