all repos — archie @ b7afb3a5dd9091e83b74114407c5a0659a9e49fd

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>