hugo-PaperMod/layouts/partials/header.html
2020-09-06 20:16:51 +05:30

18 lines
594 B
HTML

<header class="header">
<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>