A mirror of my website's source code.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _macros.html

View raw Download
text/html • 640 B
HTML document, ASCII text
        
            
1
{% macro GenerateBreadcrumbs(pages=[]) %}
2
<nav aria-label="breadcrumbs" aria-roledescription="Site breadcrumb">
3
<ol class="breadcrumbs">
4
{% if pages|length != 0 %}
5
<li>
6
<a href="/">Index</a>
7
</li>
8
{% for page in pages %}
9
<li >
10
<a
11
{% if loop.revindex0 == 0 %}aria-current="location"{% endif %}
12
href="{{page['href']}}"
13
>{{page["title"]}}</a>
14
</li>
15
{% endfor %}
16
{% else %}
17
<li>
18
<a href="/" aria-current="location">Index</a>
19
</li>
20
{% endif %}
21
</ol>
22
</nav>
23
{%- endmacro %}
24