fixed 昼夜切换 bug

This commit is contained in:
Vaica committed 2026-01-29 20:33:30 +08:00
1 parent aaf8813d8b
commit 7de8d0e253
6 files changed
+211 -122

No files matched your search

+2 -1
View File
@@ -27,7 +27,8 @@
// 检查 Artalk 是否已定义
if (typeof Artalk !== 'undefined') {
var isDark = document.documentElement.getAttribute('data-theme') === 'dark';
Artalk.init({
// 保存实例到全局变量 window.artalk
window.artalk = Artalk.init({
el: '#Comments',
server: '{{ .Site.Params.artalk.server }}',
site: '{{ .Site.Params.artalk.site }}',
+1 -1
View File
@@ -18,7 +18,7 @@
<i class="ri-search-line"></i>
</a>
<a href="javascript:;" id="theme-toggle" title="切换主题">
<i class="ri-palette-line"></i>
<i class="ri-sun-line"></i>
</a>
<a href="#Comments" id="to-comments" title="跳转评论">
<i class="ri-chat-2-line"></i>