mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-12 03:40:58 +00:00
Sync multilingual versions (#1875)
* Sync multilingual docs and comments * Refactor zensical extra.css * Refine zensical styles * Tune zensical landing buttons * Refine landing section themes
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
/* Set palette on initial load */
|
||||
var palette = __md_get("__palette")
|
||||
if (palette && typeof palette.color === "object") {
|
||||
var theme = palette.color.scheme === "slate" ? "dark_dimmed" : "light"
|
||||
var theme = palette.color.scheme === "slate" ? "noborder_dark" : "light"
|
||||
giscus.setAttribute("data-theme", theme)
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
ref.addEventListener("change", function() {
|
||||
var palette = __md_get("__palette")
|
||||
if (palette && typeof palette.color === "object") {
|
||||
var theme = palette.color.scheme === "slate" ? "dark_dimmed" : "light"
|
||||
var theme = palette.color.scheme === "slate" ? "noborder_dark" : "light"
|
||||
|
||||
/* Instruct Giscus to change theme */
|
||||
var frame = document.querySelector(".giscus-frame")
|
||||
|
||||
Reference in New Issue
Block a user