themu/layouts/partials/head.html

15 lines
387 B
HTML
Raw Normal View History

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