website/layouts/partials/nav.html

34 lines
800 B
HTML
Raw Normal View History

2020-09-14 16:24:02 +02:00
<nav>
<div class="container">
<section class="website-name">
<a href="{{ .Site.BaseURL }}">{{ .Site.Params.menuname }}</a>
2020-09-14 16:24:02 +02:00
</section>
<span class="seperator">/</span>
<section class="website-mainmenu">
2020-09-14 16:24:02 +02:00
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
2020-09-14 16:24:02 +02:00
{{ end }}
</ul>
</section>
<section class="website-externallinks">
<ul>
{{ range .Site.Menus.externallinks }}
2020-09-23 18:17:31 +02:00
<li>
<a title="{{ .URL }}" href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
2020-09-23 18:17:31 +02:00
</li>
2020-09-14 16:24:02 +02:00
{{ end }}
</ul>
</section>
</div>
</nav>