feat: Revert previous nav design, re-add option to disable nav icons
Yes, I'm weird
This commit is contained in:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user