all repos — archie @ 3fa25abce4417d117fa2c1c858616257a389b6b8

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>