all repos — archie @ f753261345802be51979dde243f5693c3bd48e85

A minimal Hugo Theme

fix: no need to reload for theme change

Changing the theme using toggle does not require reloading the entire page using self-linking
9x9x9x 87396719+9x9x9x@users.noreply.github.com
Thu, 10 Nov 2022 02:00:40 +0530
commit

f753261345802be51979dde243f5693c3bd48e85

parent

dbf65c9a037a07c8f2e807023bb289b57808528a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M layouts/partials/head.htmllayouts/partials/head.html

@@ -7,7 +7,7 @@ {{ 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> + | <span id="dark-mode-toggle" onclick="toggleTheme()"></span> <script src="{{ .Site.BaseURL }}js/themetoggle.js"></script> {{ end }} </nav>