A mirror of my website's source code.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 _macros.html

View raw Download
text/html • 478 B
HTML document, ASCII text
        
            
1
{% macro GenerateBreadcrumbs(pages=[]) %}
2
<ol role="navigation" class="breadcrumbs" aria-roledescription="Site breadcrumb">
3
<li>
4
<a href="/">Index</a>
5
</li>
6
{% for page in pages %}
7
<li {% if loop.revindex0 == 0 %}aria-current="location"{% endif %}>
8
{% if loop.revindex0 != 0 %}<a href="{{page['href']}}">{% endif %}
9
{{page["title"]}}
10
{% if loop.revindex0 != 0 %}</a>{% endif %}
11
</li>
12
{% endfor %}
13
</ol>
14
{%- endmacro %}