feat: Revert previous nav design, re-add option to disable nav icons

Yes, I'm weird
This commit is contained in:
daudix
2024-01-20 19:14:09 +03:00
parent 4ab0720ce2
commit 3e8e9647d8
4 changed files with 18 additions and 34 deletions

View File

@ -1,23 +1,31 @@
<header id="header">
<nav>
<a id="title" href="{{ get_url(path='') }}">
<i class="bi bi-house"></i>
<span>{{ config.title }}</span>
{% if config.extra.nav.icons %}
<i class="bi bi-house"></i>
{% endif %}
{{ config.title }}
</a>
<ul>
{% for link in config.extra.nav.links %}
<li>
<a href="{{ link.url | safe | replace(from='$BASE_URL', to=get_url(path='')) | safe }}">
<i class="bi bi-{{ link.icon }}"></i>
<span>{{ link.name }}</span>
{% if config.extra.nav.icons %}
{% if link.icon %}
<i class="bi bi-{{ link.icon }}"></i>
{% endif %}
{% endif %}
{{ link.name }}
</a>
</li>
{% endfor %}
{% if config.extra.nav.show_feed %}
<li>
<a href="{{ get_url(path='') }}/{{ config.feed_filename }}">
<i class="bi bi-rss"></i>
<span>Feed</span>
{% if config.extra.nav.icons %}
<i class="bi bi-rss"></i>
{% endif %}
Feed
</a>
</li>
{% endif %}