diff options
| author | Clayton Craft <clayton@craftyguy.net> | 2023-02-10 10:23:08 -0800 |
|---|---|---|
| committer | Clayton Craft <clayton@craftyguy.net> | 2023-02-10 11:35:14 -0800 |
| commit | baaaf164c120bb5e96a7243b0beab8547029e498 (patch) | |
| tree | cd44e840f67088db0a9f969907e36d9678babc55 /templates/base.html | |
| parent | 7daa254c0b2be4055a40ef320f44e7d066dca753 (diff) | |
templates/base: support opening nav items in new tab
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 4 |
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 + |
