hugo-theme-wondermod/layouts/partials/header.html

18 lines
594 B
HTML
Raw Permalink Normal View History

2020-07-21 12:06:30 +02:00
<header class="header">
<nav class="nav">
{{- if .IsHome }}
<h1 class="logo"><a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></h1>
2020-07-21 12:06:30 +02:00
{{- else }}
<p class="logo"><a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></p>
{{- end }}
2020-07-21 12:06:30 +02:00
{{- if .Site.Menus.main }}
<ul class="menu" id="menu" onscroll="menu_on_scroll()">
2020-07-21 12:06:30 +02:00
{{- range .Site.Menus.main }}
<li>
<a href="{{ .URL | absLangURL}}">{{ .Name }}</a>
2020-07-21 12:06:30 +02:00
</li>
{{- end }}
</ul>
{{- end }}
</nav>
</header>