diff --git a/src/js/common.js b/src/js/common.js index a2a0cf5..25dbc2b 100644 --- a/src/js/common.js +++ b/src/js/common.js @@ -408,11 +408,11 @@ const commonContext = { if (!window.CommentWidget) { return } - $('.widget-comment').each(function (index, item) { + $('.comment-section').each(function (index, item) { let target = $(this).attr('data-target') let id = $(this).attr('data-id') CommentWidget.init( - `.widget-comment[data-id='${id}'][data-target='${target}']`, + `.comment-section[data-id='${id}'][data-target='${target}']`, '/plugins/PluginCommentWidget/assets/static/style.css', { group: target === 'Moment' ? 'moment.halo.run' : 'content.halo.run', diff --git a/templates/links.html b/templates/links.html index baa3ef6..0e97da6 100644 --- a/templates/links.html +++ b/templates/links.html @@ -48,7 +48,7 @@

评论

-
+
\ No newline at end of file diff --git a/templates/main/article.html b/templates/main/article.html index 30fa594..4b99666 100644 --- a/templates/main/article.html +++ b/templates/main/article.html @@ -91,6 +91,6 @@

评论

-
+
\ No newline at end of file diff --git a/templates/moments.html b/templates/moments.html index 52ece56..bb53233 100644 --- a/templates/moments.html +++ b/templates/moments.html @@ -38,7 +38,7 @@
-
+