feat: More glass-like navbar, support for author set in front matter, remove option to disable nav icons
This commit is contained in:
@ -8,6 +8,10 @@
|
||||
<time datetime='{{ page.date | date(format='%+') }}' pubdate>
|
||||
{{- page.date | date(format=config.extra.date_format) -}}
|
||||
</time>
|
||||
{%- if page.authors %}
|
||||
<span>•</span>
|
||||
<span>Author: {{ page.authors[0] }}</span>
|
||||
{%- endif %}
|
||||
{%- if page.taxonomies %}
|
||||
{%- for name, taxon in page.taxonomies %}
|
||||
<span>•</span>
|
||||
|
@ -25,6 +25,10 @@
|
||||
<time datetime="{{ page.date | date(format='%+') }}" pubdate>
|
||||
{{- page.date | date(format=config.extra.date_format) -}}
|
||||
</time>
|
||||
{%- if page.authors %}
|
||||
<span>•</span>
|
||||
<span>Author: {{ page.authors[0] }}</span>
|
||||
{%- endif %}
|
||||
{%- if page.taxonomies %}
|
||||
{%- for name, taxon in page.taxonomies %}
|
||||
<span>•</span>
|
||||
|
@ -1,30 +1,23 @@
|
||||
<header id="header">
|
||||
<nav>
|
||||
<a href="{{ get_url(path='') }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
<i class="bi bi-house"></i>
|
||||
{% endif %}
|
||||
{{ config.title }}
|
||||
<a id="title" href="{{ get_url(path='') }}">
|
||||
<i class="bi bi-house"></i>
|
||||
<span>{{ config.title }}</span>
|
||||
</a>
|
||||
<ul>
|
||||
{% for link in config.extra.nav.links %}
|
||||
<li>
|
||||
<a href="{{ link.url | safe | replace(from='$BASE_URL', to=get_url(path='')) | safe }}">
|
||||
{% if config.extra.nav.icons %}
|
||||
{% if link.icon %}
|
||||
<i class="bi bi-{{ link.icon }}"></i>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{{ link.name }}
|
||||
<i class="bi bi-{{ link.icon }}"></i>
|
||||
<span>{{ link.name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %} {% if config.extra.nav.show_feed %}
|
||||
{% 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
|
||||
<i class="bi bi-rss"></i>
|
||||
<span>Feed</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user