From 74015da3e566786fb93cda4640b63e30a4bb218c Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Mon, 18 Mar 2024 16:58:43 +0800 Subject: [PATCH] add: support theme switch for giscus --- layouts/partials/giscus.html | 38 +++++++++++++++++++++++++++- layouts/partials/theme-switcher.html | 21 +++++++++++++-- 2 files changed, 56 insertions(+), 3 deletions(-) diff --git a/layouts/partials/giscus.html b/layouts/partials/giscus.html index b879c18..23f493a 100644 --- a/layouts/partials/giscus.html +++ b/layouts/partials/giscus.html @@ -4,6 +4,42 @@ {{ $category := .Site.Params.GiscusDiscussionCategory | default "Announcements" }} {{ $lazyload := .Site.Params.GiscusLazyLoad | default false }} + +{{/* \ No newline at end of file + */}} diff --git a/layouts/partials/theme-switcher.html b/layouts/partials/theme-switcher.html index 982740a..65d3943 100644 --- a/layouts/partials/theme-switcher.html +++ b/layouts/partials/theme-switcher.html @@ -18,7 +18,7 @@ {{ end }} \ No newline at end of file