summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 51fd26c..458589f 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -27,5 +27,14 @@
</body>
+<script>
+
+ function toggleTheme() {
+ document.body.classList.toggle('light');
+ document.body.classList.toggle('dark');
+ }
+
+</script>
+
</html> \ No newline at end of file