8.9 全部功能写完了

This commit is contained in:
小赵同学 committed 2024-08-09 12:58:42 +08:00
1 parent acde3e57aa
commit 64c3e260d4
203 files changed
+1491 -3509

No files matched your search

+1 -20
View File
@@ -8,7 +8,7 @@
<a href="{{ . }}">{{ . }}</a>
{{ end }}
</div>
<div class="post-content" itemprop="articleBody" uk-scrollspy="target: > hr,h2,p,span; cls: uk-animation-slide-bottom-small; delay: 0">
<div class="post-content" itemprop="articleBody" uk-scrollspy="target: > hr,h2,p,pre; cls: uk-animation-slide-bottom-small; delay: 0">
{{ .Content }}
</div>
<div class="post-tags" style="margin-top: -30px;">
@@ -27,25 +27,6 @@
{{ end }}
<!-- 评论区内容结束 -->
</div>
{{/* 文章页面评论弹幕 */}}
<script>
function loadBarrager() {
// 获取当前页面的路径
var currentPath = "{{ .RelPermalink }}";
// 只有当 URL 包含 "post" 时才执行弹幕加载逻辑
if (currentPath.includes("post") || currentPath.includes("says")) {
// 调用封装的函数
fetchCommentsAndCreateBarrager(currentPath, {
looper_time: 3000, // 每条弹幕的发送间隔,单位毫秒
defaultAvatar: 'static/default-avatar.png', // 默认头像
defaultInfo: 'No comment', // 默认评论内容
defaultLink: '#', // 默认用户链接
speed: 10, // 弹幕速度,单位秒
});
}
}
</script>
<script async src="/js/bsz.js"></script>
</div>
{{ end }}