diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 35257fc7..a4a02878 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -119,6 +119,38 @@ {{ end -}} +{{- /* theme-toggle is disabled and theme is auto */}} +{{- if (and site.Params.disableThemeToggle (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark")) }} + +{{- end }} +