diff --git a/themes/lotusdocs/layouts/_default/baseof.html b/themes/lotusdocs/layouts/_default/baseof.html index 2612080..2a10e8c 100644 --- a/themes/lotusdocs/layouts/_default/baseof.html +++ b/themes/lotusdocs/layouts/_default/baseof.html @@ -61,6 +61,12 @@ {{ end }} + + {{ if eq .Site.Params.docs.darkMode true -}} + {{ $darkModeSwitch := resources.Get (printf "/%s/%s" "docs" "js/darkmode-switch.js") | js.Build | minify }} + + {{ end -}} + {{- partialCached (printf "footer/footer-scripts.html") . -}}