diff --git a/templates/assets/js/comment/artalk.js b/templates/assets/js/comment/artalk.js index d9c42cef..f223b699 100644 --- a/templates/assets/js/comment/artalk.js +++ b/templates/assets/js/comment/artalk.js @@ -12,6 +12,7 @@ }, null)) function versionOld(ctx){ + // 旧版本兼容性补丁 ctx.getCommentList().forEach(comment => { const $content = comment.getRender().$content btf.loadLightbox($content.querySelectorAll('img:not([atk-emoticon])')) @@ -19,6 +20,7 @@ } function version_2_7_3_WithUpper(ctx){ + // 2.7.3 版本及以后版本支持 ctx.get('list').getCommentNodes().forEach(comment => { const $content = comment .getRender().$content btf.loadLightbox($content.querySelectorAll('img:not([atk-emoticon])')) @@ -36,8 +38,8 @@ } if (GLOBAL_CONFIG.lightbox === 'null') return - artalkItem.on('list-loaded', () => { - versionCheck(artalkItem.ctx); + window.artalkItem.on('list-loaded', () => { + versionCheck(window.artalkItem.ctx); }) } diff --git a/templates/modules/widgets/aside/wechat.html b/templates/modules/widgets/aside/wechat.html index 9e5002f2..80539bcd 100644 --- a/templates/modules/widgets/aside/wechat.html +++ b/templates/modules/widgets/aside/wechat.html @@ -17,7 +17,7 @@ th:with="faceImg = ${theme.config.sidebar.wechat.wechatImgFace}, backImg=${theme #aside-content .card-widget#card-wechat::before { position: absolute; width: 100%; - height: 100%; + height: 90%; left: 0; top: 0; background: url([[${theme.config.sidebar.wechat.wechatImg}]]) center center no-repeat; diff --git a/templates/post.html b/templates/post.html index a3c40ca5..6981d9c8 100644 --- a/templates/post.html +++ b/templates/post.html @@ -79,12 +79,12 @@ - + class="post-meta-wechat" th:title=" ${pluginFinder.available('plugin-platforms-sync') && (syncStatus == '同步更新文章成功' || syncStatus == '同步上传文章成功') ? '该文章已在公众号中更新' : '该文章在博客首发'}"> + 博客独享 - + 公众号同步