feat: added data based dynamic navigation for site header
This commit is contained in:
parent
01235ab6a2
commit
554a02961f
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"items": [
|
||||
{
|
||||
"text": "Start",
|
||||
"url": "/"
|
||||
},
|
||||
{
|
||||
"text": "Kontakt",
|
||||
"url": "/contact/"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -11,8 +11,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||
<div class="navbar-nav">
|
||||
<a href="/" class="nav-item nav-link active">Start</a>
|
||||
<a href="/contact" class="nav-item nav-link active">Kontakt</a>
|
||||
{% for item in navigation.items %}
|
||||
<a href="{{ item.url }}" class="nav-item nav-link active">
|
||||
{{ item.text }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
Loading…
Reference in New Issue