Skip to content

Commit 73f6005

Browse files
HisMaxhistonemax
authored andcommitted
Fix the incorrect reference to the theme variable in the Mermaid configuration. (xaoxuu#567)
Co-authored-by: histonemax <[email protected]>
1 parent 5920303 commit 73f6005

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layout/_plugins/mermaid.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
var mermaid_config = {
55
startOnLoad: true,
66
theme:
7-
"<%- theme.style.darkmode %>" == "auto" &&
7+
"<%- theme.style.prefers_theme %>" == "auto" &&
88
window.matchMedia("(prefers-color-scheme: dark)").matches
99
? "dark"
1010
: "<%- conf.theme %>",

0 commit comments

Comments
 (0)