kiez-en-francais/themes/portio/layouts/partials/navbar.html

27 lines
1.1 KiB
HTML
Raw Normal View History

2022-06-22 21:28:26 +02:00
<nav class="navbar navbar-expand-lg fixed-top">
<div class="container">
<a href="{{ .Site.BaseURL }}" class="navbar-brand">
<img src="{{ .Site.Params.logo | absURL }}" alt="site-logo">
</a>
<button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
<span class="navbar-toggler-icon"></span>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-between" id="navbarCollapse">
<ul class="nav navbar-nav main-navigation my-0 mx-auto">
{{ $menu := .Site.Menus.main }}
{{ range $index, $element := $menu }}
<li class="nav-item">
<a href="{{ $.Site.BaseURL }}{{ .URL }}"
class="nav-link text-dark text-sm-center p-2 {{ if $.IsHome }}scroll{{ end }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
<div class="navbar-nav">
<a href="{{ "contact" | absURL }}" class="btn btn-primary btn-zoom hire_button">S'aboucher avec nous</a>
</div>
</div>
</div>
</nav>