mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
e17d61b46c
(ux improve)
23 lines
679 B
HTML
23 lines
679 B
HTML
<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>
|
|
{{- end }}
|
|
{{- if .Site.Menus.main }}
|
|
<ul class="menu" id="menu" onscroll="menu_on_scroll()">
|
|
{{- range .Site.Menus.main }}
|
|
<li>
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
</nav>
|
|
</header> |