Skip to content

Commit 311c64a

Browse files
committed
[fix] Allow external links in menu sub links
1 parent e9cb15c commit 311c64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

theme/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
{% for subtext, sublink in item.items() %}
139139
<a
140140
class="navbar-item {% if output_file == sublink %}is-active{% endif %}"
141-
href="{{ SITEURL }}/{{ sublink }}"
141+
href="{% if not sublink.startswith("http") %}{{ SITEURL }}/{% endif %}{{ sublink }}"
142142
>{{ subtext }}</a
143143
>
144144
{% endfor %}

0 commit comments

Comments
 (0)