Skip to content

Commit bbdb562

Browse files
committed
Ensure that external links in the nav bar open in a new tab
1 parent 843c9ec commit bbdb562

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_includes/nav_list

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
{% else %}
3737
{% assign active = "" %}
3838
{% endif %}
39-
40-
<li><a href="{{ child_url }}" class="{{ active }}">{{ child.title }}</a></li>
39+
<li><a href="{{ child_url }}" class="{{ active }}" {% if child.url contains "://" %} target="_blank" rel="noreferrer noopener" {% endif %}>{{ child.title }}</a></li>
4140
{% endfor %}
4241
</ul>
4342
{% endif %}

0 commit comments

Comments
 (0)