all repos — archie @ e1a33921657441b5b53cd7e7a11c5d4c769c7e8f

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        | <span id="dark-mode-toggle" onclick="toggleTheme()"></span>
11		<script src="{{ .Site.BaseURL }}js/themetoggle.js"></script>
12		{{ end }}
13	</nav>
14</header>