feat: add option to enable or disable the dark mode toggle button (#529)

This commit is contained in:
Robert Kaussow 2022-11-02 15:48:45 +01:00 committed by GitHub
parent d0a7f2bb60
commit e9ece03388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 12 deletions

View file

@ -1,3 +1,6 @@
{{- if default true .Site.Params.GeekdocDarkModeToggle }}
<script src="{{ index (index .Site.Data.assets "colortheme.js") "src" | relURL }}"></script>
{{- end }}
<script src="{{ index (index .Site.Data.assets "main.js") "src" | relURL }}"></script>
<link