all repos — archie @ 8e4cb8c7387df68afda24fd7f7148b574ab63895

A minimal Hugo Theme

layouts/partials/head.html (view raw)

 1<header>
 2	<div class="main">
 3		<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
 4	</div>
 5	<nav>
 6		{{ range .Site.Menus.main }}
 7		<a href="{{ .URL }}">{{ .Name }}</a>
 8		{{ end }}
 9		{{ if eq .Site.Params.mode "toggle" -}}
10        | <a id="dark-mode-toggle" onclick="toggleTheme()" href=""></a>
11		<script src="{{ .Site.BaseURL }}js/themetoggle.js"></script>
12		{{ end }}
13	</nav>
14</header>