修复评论pjax刷新问题

This commit is contained in:
小赵同学 committed 2024-07-13 15:15:32 +08:00
1 parent 2c90fe1cbf
commit 1be208aee4
21 files changed
+613 -233

No files matched your search

-3
View File
@@ -12,9 +12,6 @@
<!-- main主体部分 -->
{{ block "main" . }}{{ end }}
<!-- main主体部分结束 -->
{{ if or (eq .Type "about") (eq .Type "post") }}
{{ partial "waline.html" . }}
{{ end }}
<!-- footer页脚部分 -->
{{ partial "footer.html" .}}
<!-- footer页脚部分结束 -->
+6 -3
View File
@@ -20,9 +20,12 @@
<hr class="uk-divider-icon">
<div id="comments" class="comments-area">
<!-- 评论区内容 -->
<div id="waline"></div>
{{ if or (eq .Type "about") (eq .Type "post") }}
{{ partial "waline.html" . }}
{{ end }}
<!-- 评论区内容结束 -->
</div>
{{/* 文章页面评论弹幕 */}}
{{/* 文章页面评论弹幕 */}}
<script type="text/javascript">
$(document).ready(function () {
// 获取当前页面的路径
@@ -44,6 +47,6 @@
});
});
</script>
</div>
{{ end }}