mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
fix: no need to reload for theme change
Changing the theme using toggle does not require reloading the entire page using self-linking
This commit is contained in:
parent
dbf65c9a03
commit
f753261345
@ -7,7 +7,7 @@
|
|||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if eq .Site.Params.mode "toggle" -}}
|
{{ 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>
|
<script src="{{ .Site.BaseURL }}js/themetoggle.js"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user