diff --git a/_includes/head.html b/_includes/head.html
index 97a93d6..21b92d1 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -42,3 +42,10 @@
{% endif %}
+
+{% if site.enable_darkmode %}
+
+
+
+{% endif %}
+
diff --git a/_includes/scripts/misc.html b/_includes/scripts/misc.html
index c2188d4..260ce1b 100644
--- a/_includes/scripts/misc.html
+++ b/_includes/scripts/misc.html
@@ -1,9 +1,3 @@
-{% if site.enable_darkmode %}
-
-
-
-{% endif %}
-
{% if site.enable_tooltips %}