Better targetting of internal links
This commit is contained in:
parent
d3d7a8fc7f
commit
56a2a32974
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@
|
||||||
|
|
||||||
{% for name, link in LINKS %}
|
{% for name, link in LINKS %}
|
||||||
{# Open external links in new window, relative links in the same window #}
|
{# Open external links in new window, relative links in the same window #}
|
||||||
<li><a href="{{ link }}" {% if link[:4] == 'http' %}target="_blank"{% endif %}>{{ name }}</a></li>
|
<li><a href="{{ link }}" {% if link[0] != '/' and not link.startswith(SITEURL) %}target="_blank"{% endif %}>{{ name }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue