macros.njk: add breadcrumb
This commit is contained in:
parent
3b0dbc1bb9
commit
c078105515
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user