From 2bc80b104264b0f600be4c419eb5d94650e831a4 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Fri, 1 Apr 2022 23:00:01 -0500 Subject: [PATCH] Blog comments fix --- mkdocs.production.yml | 5 ++++- theme/overrides/blog.html | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mkdocs.production.yml b/mkdocs.production.yml index 15b8eab8..4c953f9c 100644 --- a/mkdocs.production.yml +++ b/mkdocs.production.yml @@ -2,4 +2,7 @@ INHERIT: mkdocs.yml site_url: "https://www.privacyguides.org/" plugins: - search - - privacy + - privacy: + externals_exclude: + - cdn.jsdelivr.net/npm/mathjax@3/* + - giscus.app/* diff --git a/theme/overrides/blog.html b/theme/overrides/blog.html index f858c7af..84eb0394 100644 --- a/theme/overrides/blog.html +++ b/theme/overrides/blog.html @@ -45,7 +45,7 @@ if (palette && typeof palette.color === "object") if (palette.color.scheme === "slate") { 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() { var palette = __md_get("__palette") 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 */ var frame = document.querySelector(".giscus-frame")