mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
fix(comment/waline): detect dark mode from html tag
This commit is contained in:
parent
93eca2587b
commit
a9ab6b58e8
@ -13,7 +13,7 @@
|
||||
</style>
|
||||
|
||||
{{- with .Site.Params.comments.waline -}}
|
||||
{{- $config := dict "el" "#waline" "dark" `body[data-scheme="dark"]` -}}
|
||||
{{- $config := dict "el" "#waline" "dark" `html[data-scheme="dark"]` -}}
|
||||
{{- $replaceKeys := dict "serverurl" "serverURL" "requiredmeta" "requiredMeta" "wordlimit" "wordLimit" "pagesize" "pageSize" "avatarcdn" "avatarCDN" "avatarforce" "avatarForce" -}}
|
||||
|
||||
{{- range $key, $val := . -}}
|
||||
|
Loading…
Reference in New Issue
Block a user