We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fbf0b6 commit 118bae1Copy full SHA for 118bae1
themes/lotusdocs/layouts/_default/baseof.html
@@ -61,6 +61,12 @@
61
</script>
62
{{ end }}
63
64
+ <!-- Dark Mode Switch JS -->
65
+ {{ if eq .Site.Params.docs.darkMode true -}}
66
+ {{ $darkModeSwitch := resources.Get (printf "/%s/%s" "docs" "js/darkmode-switch.js") | js.Build | minify }}
67
+ <script>{{ $darkModeSwitch.Content | safeJS }}</script>
68
+ {{ end -}}
69
+
70
{{- partialCached (printf "footer/footer-scripts.html") . -}}
71
72
<!-- DocSearch Config -->
0 commit comments