You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
646 B
26 lines
646 B
{% macro render_menu(current_page) %}
|
|
{% set menu = ["home", "download", "faq", "support"] %}
|
|
|
|
<p align=center>
|
|
{% for m in menu %}
|
|
{% if current_page | lower == m %}
|
|
{% if m == "faq" %}
|
|
<b data-href="/faq">FAQ</b>
|
|
{% else %}
|
|
<b data-href="/{{ m }}">{{ m | capitalize }}</b>
|
|
{% endif %}
|
|
{% else %}
|
|
{% if m == "home" %}
|
|
<a href="/">Home</a>
|
|
{% elif m == "faq" %}
|
|
<a href="/faq">FAQ</a>
|
|
{% else %}
|
|
<a href="/{{ m }}">{{ m | capitalize }}</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if not loop.last %}
|
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endmacro %}
|