Skip to content

Commit 118bae1

Browse files
committed
fix navbar landing page
1 parent 3fbf0b6 commit 118bae1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

themes/lotusdocs/layouts/_default/baseof.html

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
</script>
6262
{{ end }}
6363

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+
6470
{{- partialCached (printf "footer/footer-scripts.html") . -}}
6571

6672
<!-- DocSearch Config -->

0 commit comments

Comments
 (0)