macros.njk: add breadcrumb
This commit is contained in:
parent
3b0dbc1bb9
commit
c078105515
@ -140,4 +140,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% 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