From 57011f1d2b04cc9032cedcd6af00301461725fa8 Mon Sep 17 00:00:00 2001
From: Cédric Bonhomme <cedric@cedricbonhomme.org>
Date: Fri, 04 Mar 2022 08:48:47 +0000
Subject: [PATCH] fix: [display] dark mode preference was not taken into account.

---
 layouts/_default/baseof.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index cd973a8..6043511 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -7,7 +7,7 @@
 >
   {{- partial "head.html" . -}}
   <body
-    {{ if eq .Params.displayMode "dark" }}
+    {{ if eq .Site.Params.displayMode "dark" }}
       class="body theme--dark"
 
     {{ else }}

--
Gitblit v1.10.0