在 giscus 初始化时因未修改其中 <script> 元素中的 data-theme 属性,导致其仍为默认的 preferred_color_scheme,会被自动推导至 dark 主题。
the attribute:data-theme in the <script> element isn't modified when the giscus initialize,which leads to the content of data-theme is also in default which is preferred_color_scheme and it automatically infer to dark theme.
在
giscus
初始化时因未修改其中<script>
元素中的data-theme
属性,导致其仍为默认的preferred_color_scheme
,会被自动推导至dark
主题。 the attribute:data-theme in the<script>
element isn't modified when the giscus initialize,which leads to the content of data-theme is also in default which ispreferred_color_scheme
and it automatically infer to dark theme.