forked from lix-project/lix-website
4e7c2d2987
(why the hell was alt text support not in the original hugo theme???)
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
<nav class="navbar navbar-expand-xl navbar-light bg-light py-4">
|
|
<div class="container">
|
|
<a class="navbar-brand d-flex align-items-center" href="{{ .Site.BaseURL }}">
|
|
{{ partial "utilities/image.html" (dict "image" "images/logo.png" "alt" "an ice cream cone made of lambdas") }}
|
|
</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarContent">
|
|
<ul class="navbar-nav ms-auto mb-2 mb-xl-0">
|
|
{{ range .Site.Menus.main }}
|
|
<li class="nav-item text-center">
|
|
<a class="nav-link text-primary px-4" href="{{ .URL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
<ul class="navbar-nav ms-xl-3 mb-2 mb-xl-0">
|
|
{{ range .Site.Menus.buttons }}
|
|
<li class="nav-item">
|
|
<a class="nav-link btn btn-primary text-light px-4" href="{{ .URL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|