tabi: improve logic on newtab opening for navbar

this was pretty obvious tbh
This commit is contained in:
Fabian Montero 2025-09-18 11:30:25 -06:00
parent b891d9a9b0
commit 7e12062f7d
Signed by: fabian
GPG key ID: 3EDA9AE3937CCDE3

View file

@ -14,11 +14,10 @@
{%- if menu.url is starting_with("http") -%}
{%- if trailing_slash -%}
<a class="nav-links no-hover-padding" href="{{ menu.url }}/"
target="_blank" rel="noopener noreferrer">
{%- else -%}
<a class="nav-links no-hover-padding" href="{{ menu.url }}"
target="_blank" rel="noopener noreferrer">
{%- endif -%}
target="_blank" rel="noopener noreferrer">
{%- else -%}
<a class="nav-links no-hover-padding" href="{{ get_url(path=menu.url, lang=lang, trailing_slash=trailing_slash) }}">
{%- endif -%}