File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
{% block disqus %}
4
4
< script src ="https://giscus.app/client.js " data-repo ="PKUFlyingPig/cs-self-learning " data-repo-id ="R_kgDOGP67ng "
5
5
data-category ="Announcements " data-category-id ="DIC_kwDOGP67ns4COM9Q " data-mapping ="title "
6
- data-reactions-enabled ="1 " data-emit-metadata ="0 " data-input-position ="top " data-theme ="light " data-lang =" zh-CN "
7
- data-loading ="lazy " crossorigin ="anonymous " async >
6
+ data-reactions-enabled ="1 " data-emit-metadata ="0 " data-input-position ="top " data-theme ="light_protanopia "
7
+ data-lang =" zh-CN " data- loading ="lazy " crossorigin ="anonymous " async >
8
8
</ script >
9
9
10
10
< script >
11
+ var palette = __get ( "__palette" )
12
+ if ( palette && typeof palette . color === "object" ) {
13
+ if ( palette . color . scheme === "slate" ) {
14
+ const giscus = document . querySelector ( "script[src*=giscus]" )
15
+ giscus . setAttribute ( "data-theme" , "dark_protanopia" )
16
+ }
17
+ }
18
+
11
19
document . addEventListener ( "DOMContentLoaded" , function ( ) {
12
20
const ref = document . querySelector ( "[data-md-component=palette]" )
13
21
ref . addEventListener ( "change" , function ( ) {
You can’t perform that action at this time.
0 commit comments