fixed 重写弹幕逻辑

This commit is contained in:
Vaica committed 2026-01-29 21:05:27 +08:00
1 parent 7de8d0e253
commit 5b7569fe40
2 files changed
+298 -200

No files matched your search

+7 -2
View File
@@ -1,4 +1,9 @@
{{ if .Site.Params.barrage.enable }}
<!-- 弹幕容器 (body 标签下) -->
<script>
window.barrageConfig = {
enableHitokoto: {{ .Site.Params.barrage.enableHitokoto | default false }},
hitokotoUrl: "{{ .Site.Params.barrage.hitokotoUrl | default "https://v1.hitokoto.cn" }}"
};
</script>
<div class="barrager"></div>
{{ end }}
{{ end }}