Add breadcrumb navigation
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user