hugo-battheme/layouts/partials/footer.html

17 lines
681 B
HTML
Raw Normal View History

<footer class="colorswitch">
2022-04-10 14:55:46 +00:00
<span id="footer-left"></span>
<span id="footer-center">
<nav id="footer-nav" aria-label="navigation">
2022-04-09 16:00:33 +00:00
{{ $currentPage := . }}
{{ range .Site.Menus.nav }}
2022-04-09 22:15:21 +00:00
<a class="footer-nav-item{{if or ($currentPage.IsMenuCurrent "nav" .) ($currentPage.HasMenuCurrent "nav" .) }} active{{end}} colorswitch" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
2022-04-09 16:00:33 +00:00
{{ end }}
</nav>
2022-04-10 14:55:46 +00:00
</span>
<span id="footer-right">
<input type="checkbox" id="darkmode-toggle" aria-label="darkmode toggle" class="toggleinput">
<label class="togglelabel colorswitch" for="darkmode-toggle"></label>
</span>
2022-04-09 16:00:33 +00:00
</footer>
2022-04-09 19:42:12 +00:00
<script src="/js/darkmode.js"></script>