This repository has been archived on 2024-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
hugo-theme-nocolor/layouts/partials/header.html

18 lines
490 B
HTML

<div class="header">
<a class="title" href="{{ .Site.Home.URL }}">{{ .Site.Title }}</a>
{{- with .Site.Params.subtitle }}
<span class="description">{{ . }}</span>
{{- end }}
</div>
<nav class="nav nav-top">
<ul>
{{- $curr := . }}
{{- range .Site.Menus.main }}
{{- $selected := cond (or ($curr.IsMenuCurrent "main" .) ($curr.HasMenuCurrent "main" .)) " pure-menu-selected" "" }}
<li>
<a href="{{.URL}}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
</nav>