mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 18:41:37 +01:00
e35915a561
add reading time as i18n
23 lines
699 B
HTML
23 lines
699 B
HTML
<header class="header">
|
|
{{- if $.Site.Params.SetThemeAuto -}}
|
|
<script>
|
|
setTheme();
|
|
</script>
|
|
{{- end -}}
|
|
<nav class="nav">
|
|
{{- if .IsHome }}
|
|
<h1 class="logo"><a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></h1>
|
|
{{- else }}
|
|
<p class="logo"><a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></p>
|
|
{{- end }}
|
|
{{- if .Site.Menus.main }}
|
|
<ul class="menu" id="menu" onscroll="menu_on_scroll()">
|
|
{{- range .Site.Menus.main }}
|
|
<li>
|
|
<a href="{{ .URL | absLangURL}}">{{ .Name }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
</nav>
|
|
</header> |