2020-07-21 12:06:30 +02:00
|
|
|
{{- if $.Site.Params.SetThemeAuto -}}
|
|
|
|
<script>
|
|
|
|
setTheme();
|
|
|
|
</script>
|
|
|
|
{{- end -}}
|
|
|
|
<header class="header">
|
|
|
|
{{- if $.Site.Params.SetThemeAuto -}}
|
|
|
|
<script>
|
|
|
|
setTheme();
|
|
|
|
</script>
|
|
|
|
{{- end -}}
|
|
|
|
<nav class="nav">
|
|
|
|
{{- if .IsHome }}
|
|
|
|
<h1 class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></h1>
|
|
|
|
{{- else }}
|
|
|
|
<p class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></p>
|
2020-07-20 17:02:07 +02:00
|
|
|
{{- end }}
|
2020-07-21 12:06:30 +02:00
|
|
|
{{- if .Site.Menus.main }}
|
|
|
|
<ul class="menu">
|
|
|
|
{{- range .Site.Menus.main }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
{{- end }}
|
|
|
|
</nav>
|
|
|
|
</header>
|