mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-05-31 03:54:23 -04:00
Blog comments fix
This commit is contained in:
parent
6c7092c229
commit
2bc80b1042
2 changed files with 6 additions and 3 deletions
|
@ -2,4 +2,7 @@ INHERIT: mkdocs.yml
|
||||||
site_url: "https://www.privacyguides.org/"
|
site_url: "https://www.privacyguides.org/"
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
- privacy
|
- privacy:
|
||||||
|
externals_exclude:
|
||||||
|
- cdn.jsdelivr.net/npm/mathjax@3/*
|
||||||
|
- giscus.app/*
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
if (palette && typeof palette.color === "object")
|
if (palette && typeof palette.color === "object")
|
||||||
if (palette.color.scheme === "slate") {
|
if (palette.color.scheme === "slate") {
|
||||||
var giscus = document.querySelector("script[src*=giscus]")
|
var giscus = document.querySelector("script[src*=giscus]")
|
||||||
giscus.setAttribute("data-theme", "dark")
|
giscus.setAttribute("data-theme", "transparent_dark")
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
ref.addEventListener("change", function() {
|
ref.addEventListener("change", function() {
|
||||||
var palette = __md_get("__palette")
|
var palette = __md_get("__palette")
|
||||||
if (palette && typeof palette.color === "object") {
|
if (palette && typeof palette.color === "object") {
|
||||||
var theme = palette.color.scheme === "slate" ? "dark" : "light"
|
var theme = palette.color.scheme === "slate" ? "transparent_dark" : "light"
|
||||||
|
|
||||||
/* Instruct Giscus to change theme */
|
/* Instruct Giscus to change theme */
|
||||||
var frame = document.querySelector(".giscus-frame")
|
var frame = document.querySelector(".giscus-frame")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue