use <p> if navbar item doesnt have a link
This commit is contained in:
parent
fe58374f3b
commit
3c098a17bd
2 changed files with 13 additions and 13 deletions
|
|
@ -15,13 +15,13 @@ url = "/en/blog/"
|
|||
name = "reviews"
|
||||
url = "/en/reviews/"
|
||||
|
||||
[en.links]
|
||||
name = "links"
|
||||
url = "/en/links/"
|
||||
[en.music]
|
||||
name = "music"
|
||||
url = "https://smalrainbow.bandcamp.com/"
|
||||
new_tab = true
|
||||
|
||||
[en.contact]
|
||||
name = "contact"
|
||||
url = "/en/contact/"
|
||||
[en.etc]
|
||||
name = "etc"
|
||||
|
||||
[es]
|
||||
[es.home]
|
||||
|
|
@ -40,10 +40,10 @@ url = "/es/blog/"
|
|||
name = "reviews"
|
||||
url = "/es/reviews/"
|
||||
|
||||
[es.links]
|
||||
name = "links"
|
||||
url = "/es/links/"
|
||||
[es.music]
|
||||
name = "música"
|
||||
url = "https://smalrainbow.bandcamp.com/"
|
||||
new_tab = true
|
||||
|
||||
[es.contact]
|
||||
name = "contacto"
|
||||
url = "/es/contacto/"
|
||||
[es.etc]
|
||||
name = "etc"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="navbar-content">
|
||||
<ul>
|
||||
{% for item in navbar[page.lang] | values %}
|
||||
<li id="{{ item.name }}"><a href="{{ item.url }}">{{ item.name }}</a></li>
|
||||
<li id="{{ item.name }}">{% if item.url %}<a href="{{ item.url }}" {% if item.new_tab %}target="_blank"{% endif %}>{{ item.name }}</a>{% else %}<p>{{ item.name }}</p>{% endif %}</li>
|
||||
{% endfor %}
|
||||
<li id="nav-hover" aria-hidden="true"></li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue