website/templates/faq/faq-breadcrumbs.html
vachan-maker 3d33a840b2 Add proper FAQ page and TTS instructions
Signed-off-by: meenbeese <meenbeese@tutanota.com>
Signed-off-by: S. Kozyr <s.trump@gmail.com>
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-03-07 00:45:07 +02:00

18 lines
763 B
HTML

{# Build breadcrumbs in form:
F.A.Q. Android • Bookmarks • General • iOS • Map • Routing • TTS
If we generate /faq/android/, or /faq/general, or etc page then `term` variable is
available with selected FAQ term.
#}
<p class="faq-breadcrumbs">
<span class="faq-title">{{ trans(key='faq-menu-title', lang=lang) }}</span>
{% set categories = get_taxonomy(kind='faq', lang=lang) | get(key="items") %}
{% for item in categories %}
{% if term and term.name == item.name %} {# Do not show link for current FAQ term #}
<span class="faq-taxonomy">{{ item.name }}</span>
{% else %}
<a href="{{ item.permalink }}" class="faq-taxonomy">{{ item.name }}</a>
{% endif %}
{% endfor %}
</p>