all repos — archie @ ac7b05d2a110b10adac9cf20bd1030f7bd303cfd

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>