From 3d02bf2b8c27afa6b9c9c17ece5c1a9ba2821414 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sun, 17 Sep 2023 14:19:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E4=BE=A7=E6=A0=8F=E6=9C=80=E8=BF=91=E8=AF=84?= =?UTF-8?q?=E8=AE=BA500=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/modules/widgets/aside/comments.html | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/templates/modules/widgets/aside/comments.html b/templates/modules/widgets/aside/comments.html index 4a9d1feb..3d86fb4a 100644 --- a/templates/modules/widgets/aside/comments.html +++ b/templates/modules/widgets/aside/comments.html @@ -1,34 +1,37 @@ -
+
最新评论
- -
+
+ comment.spec.subjectRef.kind == 'SinglePage' && not #strings.contains('photos,links,moments', comment.spec.subjectRef.name) ? singlePageFinder.getByName(comment.spec.subjectRef.name) : null}, + url = ${page == null? '/' : page.status.permalink + '#comment-' + comment.metadata.name}"> 头像 + th:src="${isLazyload ? loadingImg : img}" th:data-lazy-src="${ isLazyload ? img : ''}"> -
- +
+
stonewu / - +
- + + \ No newline at end of file From f155a759a06511e2f8c3734f0074d4a110f10cef Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sun, 17 Sep 2023 17:06:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BA500?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/modules/comment/{artalk.html => Artalk.html} | 0 templates/modules/comment/{twikoo.html => Twikoo.html} | 0 templates/modules/comment/{waline.html => Waline.html} | 0 .../comment/newest-comments/{artalk.html => Artalk.html} | 6 +++--- .../comment/newest-comments/{twikoo.html => Twikoo.html} | 0 .../comment/newest-comments/{waline.html => Waline.html} | 0 templates/modules/layouts/layout.html | 2 +- 7 files changed, 4 insertions(+), 4 deletions(-) rename templates/modules/comment/{artalk.html => Artalk.html} (100%) rename templates/modules/comment/{twikoo.html => Twikoo.html} (100%) rename templates/modules/comment/{waline.html => Waline.html} (100%) rename templates/modules/comment/newest-comments/{artalk.html => Artalk.html} (98%) rename templates/modules/comment/newest-comments/{twikoo.html => Twikoo.html} (100%) rename templates/modules/comment/newest-comments/{waline.html => Waline.html} (100%) diff --git a/templates/modules/comment/artalk.html b/templates/modules/comment/Artalk.html similarity index 100% rename from templates/modules/comment/artalk.html rename to templates/modules/comment/Artalk.html diff --git a/templates/modules/comment/twikoo.html b/templates/modules/comment/Twikoo.html similarity index 100% rename from templates/modules/comment/twikoo.html rename to templates/modules/comment/Twikoo.html diff --git a/templates/modules/comment/waline.html b/templates/modules/comment/Waline.html similarity index 100% rename from templates/modules/comment/waline.html rename to templates/modules/comment/Waline.html diff --git a/templates/modules/comment/newest-comments/artalk.html b/templates/modules/comment/newest-comments/Artalk.html similarity index 98% rename from templates/modules/comment/newest-comments/artalk.html rename to templates/modules/comment/newest-comments/Artalk.html index d2ac391a..256558f7 100644 --- a/templates/modules/comment/newest-comments/artalk.html +++ b/templates/modules/comment/newest-comments/Artalk.html @@ -192,9 +192,9 @@ 'date': e.date, } }) - saveToLocal.set('artalk-newest-comments', JSON.stringify(artalk), 10 / (60 * 24)) - generateHtml(artalk) - document.querySelector('#newcomm') && necommHtml(artalk) + saveToLocal.set('artalk-newest-comments', JSON.stringify(Artalk), 10 / (60 * 24)) + generateHtml(Artalk) + document.querySelector('#newcomm') && necommHtml(Artalk) }).catch(e => { const $dom = document.querySelector('#card-newest-comments .aside-list') $dom.innerHTML = "无法获取评论,请确认相关配置是否正确" diff --git a/templates/modules/comment/newest-comments/twikoo.html b/templates/modules/comment/newest-comments/Twikoo.html similarity index 100% rename from templates/modules/comment/newest-comments/twikoo.html rename to templates/modules/comment/newest-comments/Twikoo.html diff --git a/templates/modules/comment/newest-comments/waline.html b/templates/modules/comment/newest-comments/Waline.html similarity index 100% rename from templates/modules/comment/newest-comments/waline.html rename to templates/modules/comment/newest-comments/Waline.html diff --git a/templates/modules/layouts/layout.html b/templates/modules/layouts/layout.html index 1b8d5973..6e08176d 100644 --- a/templates/modules/layouts/layout.html +++ b/templates/modules/layouts/layout.html @@ -213,7 +213,7 @@
- +