archie-shades-of-purple/layouts/partials/head.html

15 lines
378 B
HTML
Raw Normal View History

2020-04-08 20:44:29 +02:00
<header>
2020-04-22 12:14:28 +02:00
<div class="main">
<a href="{{ absURL "/" }}">{{ .Site.Title }}</a>
2020-04-22 12:14:28 +02:00
</div>
<nav>
{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
2021-09-24 19:38:28 +02:00
{{ if eq .Site.Params.mode "toggle" -}}
| <span id="dark-mode-toggle" onclick="toggleTheme()"></span>
<script src="{{ absURL "js/themetoggle.js" }}"></script>
2021-09-24 19:38:28 +02:00
{{ end }}
2020-04-22 12:14:28 +02:00
</nav>
</header>