diff --git a/config/_default/params.toml b/config/_default/params.toml
index bb8bdd54..c9a9788c 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -17,6 +17,7 @@ enableCodeCopy = false
[header]
layout = "basic" # valid options: basic, hamburger, hybrid, custom
# logo = "img/logo.jpg"
+ # darkLogo = "img/dark-logo.jpg" # specify a different logo for dark mode if needed
showTitle = true
[footer]
diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html
index a9cd2a59..de66af69 100644
--- a/layouts/partials/logo.html
+++ b/layouts/partials/logo.html
@@ -1,6 +1,29 @@
{{- if .Site.Params.header.logo }}
{{- $logo := resources.Get .Site.Params.header.logo }}
- {{- if $logo }}
+ {{- $darkLogo := resources.Get .Site.Params.header.darkLogo }}
+
+
+ {{- if and $logo $darkLogo }}
+
+
+
+
+
+
+
+ {{- else if $logo }}