Skip to content

Commit

Permalink
fix: waline最新评论地址错误
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 committed Mar 9, 2023
1 parent 3e5bb80 commit 6717aad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layout/_mixin/comment.pug
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mixin CommentRender()
setTimeout(function () {
init({
el: '#wcomments',
serverURL: '#{theme.waline.serverURL}',
serverURL: '#{theme.waline.serverURL.replace(/\/+$/, '')}',
lang: '#{theme.waline.lang}',
locale: !{locale},
emoji: !{emoji},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-shokax",
"version": "0.2.0-rc5",
"version": "0.2.0-rc6",
"description": "a hexo theme based on shoka",
"main": "index.js",
"repository": "https://github.com/zkz098/hexo-theme-shokaX",
Expand Down
2 changes: 1 addition & 1 deletion scripts/helpers/asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ hexo.extend.helper.register('_new_comments', function (mode) {
import { RecentComments } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs'
RecentComments({
el: '#new-comment',
serverURL: '${hexo.theme.config.waline.serverURL}',
serverURL: '${hexo.theme.config.waline.serverURL.replace(/\/+$/, '')}',
count: 10,
});
</script>
Expand Down

0 comments on commit 6717aad

Please sign in to comment.