Add breadcrumb navigation

This commit is contained in:
2026-08-07 04:05:49 +02:00
parent bda4ce5ef2
commit 881e4f1598
4 changed files with 33 additions and 1 deletions
+17
View File
@@ -9,6 +9,23 @@
{% if page_num > 1 %}<meta name="robots" content="noindex, follow">{% endif %}
{% endblock %}
{% block breadcrumb %}
{% if section %}
<nav aria-label="breadcrumb">
<a href="{{ site.base_dir }}">{{ site.name }}</a>
{{ section }}
</nav>
{% elif tag %}
<nav aria-label="breadcrumb">
<a href="{{ site.base_dir }}">{{ site.name }}</a>
<a href="{{ site.base_dir }}tags/">Tags</a>
{{ tag }}
</nav>
{% else %}
{{ super() }}
{% endif %}
{% endblock %}
{% block main %}
{% if heading %}<h1>{{ heading }}</h1>{% endif %}
{% for item in items %}