Enable blank target in nav links
This commit is contained in:
parent
6ac0d1899f
commit
106e4b0d6e
@ -17,5 +17,5 @@ nav = [
|
||||
{title = "Personál", path = "/personal/"},
|
||||
{title = "Galerie", path = "/galerie/"},
|
||||
{title = "Kontakt", path = "/kontakt/"},
|
||||
{title = "Přihlášky", path = "https://is.kocandaci.cz", external = true}
|
||||
{title = "Přihlášky", path = "https://is.kocandaci.cz", external = true, target_blank = true}
|
||||
]
|
||||
|
@ -1,10 +1,13 @@
|
||||
{% macro nav_items() %}
|
||||
{% for item in config.extra.nav %}
|
||||
<li><a
|
||||
{% if item.external %}
|
||||
<li><a class="external" href="{{ item.path }}">{{ item.title }}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{{ item.path }}">{{ item.title }}</a></li>
|
||||
class="external" href="{{ item.path }}"
|
||||
{% endif %}
|
||||
{% if item.target_blank %}
|
||||
target="_blank"
|
||||
{% endif %}
|
||||
href="{{ item.path }}">{{ item.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user