From 5cbb126c61ef266f56a4fe6c9da63f37534b8320 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 28 Oct 2022 21:57:57 +0200 Subject: [PATCH] improve menu template --- templates/blocks/navigation.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/blocks/navigation.html b/templates/blocks/navigation.html index 08c1500..194a72d 100644 --- a/templates/blocks/navigation.html +++ b/templates/blocks/navigation.html @@ -6,9 +6,12 @@ {% if not mapping.list_childs %}
  • + {% if this._path == mapping.href %} class="active" {% endif %} + {% if mapping.external | default(false) %} + href="{{ mapping.href }}" target="_blank" rel="noopener noreferrer" + {% else %} + href="{{ mapping.href | url }}" + {% endif %}> {{- title -}} {% else %}