macros.njk: add breadcrumb

This commit is contained in:
Alice Gaudon 2020-07-30 10:51:48 +02:00
parent 3b0dbc1bb9
commit c078105515

View File

@ -141,3 +141,14 @@
</div>
{% endif %}
{% endmacro %}
{% macro breadcrumb(currentPageTitle, pages=[]) %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{% for page in pages %}
<li><a href="{{ page.link }}">{{ page.title }}</a></li>
{% endfor %}
<li class="active" aria-current="page">{{ currentPageTitle }}</li>
</ol>
</nav>
{% endmacro %}