style: show all back links the same way above the page title

This commit is contained in:
fromme committed 2026-11-12 11:36:18 +01:00
1 parent 3c19401d8b
commit e9b0de44f1
14 files changed
+34 -64

No files matched your search

+1 -4
View File
@@ -6,10 +6,7 @@
{% block root %}
{% set back = item.children|filter(child => child.extras.back is defined)|first %}
{% if back %}
<a href="{{ back.uri }}" class="inline-flex items-center gap-x-1 pb-4 text-sm font-bold text-brand hover:text-brand-dark">
{{ icon('arrow-left', 'w-4 h-4 shrink-0') }}
<span>{{ back.label|raw }}</span>
</a>
{{ include('_partials/_back_link.html.twig', { 'url': back.uri, 'label': back.label }) }}
{% endif %}
<nav aria-label="Bereiche" class="flex overflow-x-auto border-b border-line mb-8">
{% for child in item.children|filter(child => child.displayed and child.extras.divider is not defined and child.extras.back is not defined) %}