aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAhmed Alaa <aa@4b.cx>2023-04-05 18:46:07 +0000
committerAhmed Alaa <aa@4b.cx>2023-04-05 18:46:07 +0000
commite094ecaf35c733f74ce777a91a672adca6003eaf (patch)
tree776857faa22bd778a8233b4e755c64558b1308d5 /templates
parent9e5b31ad75de3932181252c9dd4ca74e3d73d2a7 (diff)
parentbaaaf164c120bb5e96a7243b0beab8547029e498 (diff)
Merge branch 'new-tab' into 'main'
templates/base: support opening nav items in new tab See merge request 4bcx/no-style-please!4
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html
index 9e3965f..713307c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -98,7 +98,7 @@
{% if config.extra.header_nav %}
<nav>
{% for nav_item in config.extra.header_nav %}
- <a href="{{ nav_item.url | safe }}">{{ nav_item.name }}</a>
+ <a href="{{ nav_item.url | safe }}" {% if nav_item.new_tab %}target="_blank" rel="noreferrer noopener"{% endif %}>{{ nav_item.name }}</a>
{% endfor %}
</nav>
{% endif %}
@@ -120,4 +120,4 @@
</div>
</body>
</html>
- \ No newline at end of file
+