fixed 重写弹幕逻辑
This commit is contained in:
1 parent
7de8d0e253
commit
5b7569fe40
2 files changed
+298
-200
No files matched your search
@@ -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 }}
|
||||
Reference in new issue
Block a user