15 lines
387 B
HTML
15 lines
387 B
HTML
<header>
|
|
<div class="main">
|
|
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
|
</div>
|
|
<nav>
|
|
{{ range .Site.Menus.main }}
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
{{ end }}
|
|
{{ if eq .Site.Params.mode "toggle" -}}
|
|
| <a id="dark-mode-toggle" onclick="toggleTheme()" href=""></a>
|
|
<script src="{{ .Site.BaseURL }}js/themetoggle.js"></script>
|
|
{{ end }}
|
|
</nav>
|
|
</header>
|