website/layouts/partials/nav.html
2020-09-14 16:24:02 +02:00

29 lines
671 B
HTML

<nav>
<div class="container">
<section class="website-name">
<a href="{{ .Site.BaseURL }}">Vrifox</a>
</section>
<section class="website-nav">
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
<li>|</li>
{{ range .Site.Menus.links }}
<li>
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
</ul>
</section>
</div>
</nav>