Skip to content

Commit 47be34f

Browse files
committed
fix(navitem): add external link support in mobile nav
1 parent 294ecfe commit 47be34f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/home/templates/home/components/navbar.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@
6363
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-64 p-2 shadow" style="left: -400%; z-index: 1000;">
6464
{% for item in navigation_items %}
6565
<li class="relative">
66+
{% if item.external_url %}
67+
<a href="{{ item.external_url }}" class="font-bantayog">{{ item }}</a>
68+
{% else %}
6669
<a class="font-bantayog">{{ item }}</a>
70+
{% endif %}
6771
<ul class="p-2">
6872
{% for child in item.children.all %}
6973
<li>

0 commit comments

Comments
 (0)