From e51501e128c840329ddb2f85d13942116414b8d4 Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Mon, 26 Jun 2023 15:56:04 +0300 Subject: [PATCH] fix header --- templates/partials/header.html | 40 +++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/templates/partials/header.html b/templates/partials/header.html index e6a162a75..30503ec4d 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -34,24 +34,16 @@ {% if ' {{link_label}} {% endif %} - - {% elif current == current_url %} - - {{ link_label }} - - {% else %} - {{ link_label }} + {{link_label}} - {% endif %} {% else %}
@@ -112,7 +104,7 @@
+{% for header_item in header_items %} +{% if not loop.first %} + {% set header_arr = header_item | split(pat="") %} + {% set header_label = header_arr[0] %} + {% set header_menu = header_arr[1] %} + {% set menu_id = header_label ~ "-menu" | slugify %} + + + +{% endif %} +{% endfor %}