Skip to content

Commit

Permalink
fix: path错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 committed Aug 1, 2023
1 parent a310d36 commit 47109b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layout/_mixin/comment.pug
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ mixin CommentRender()
script(type="module" data-pjax).
import { init } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs';
const path = document.getElementById("twikoo_visitors").getAttribute("data-path");
setTimeout(function () {
init({
el: '#wcomments',
Expand All @@ -34,7 +33,7 @@ mixin CommentRender()
wordLimit: #{theme.waline.wordLimit},
pageSize: #{theme.waline.pageSize},
pageview: #{theme.waline.pageview},
path: path,
path: window.location.pathname,
dark: 'html[data-theme="dark"]'
});
}, 1000)
Expand Down

0 comments on commit 47109b6

Please sign in to comment.