From 1bf4abf32aa32d94b80f3e4179e46e78a2f8e5f4 Mon Sep 17 00:00:00 2001 From: jiewenhuang Date: Fri, 22 Sep 2023 00:19:07 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=96=B0=E5=A2=9Ewaline=E8=AF=84=E8=AE=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 17 +++ templates/links.html | 21 +++ templates/modules/common/blogger.html | 76 +++++++++-- templates/modules/key_css.html | 10 ++ templates/modules/macro/comment.html | 23 ++++ templates/modules/macro/post_item.html | 17 +++ templates/modules/widgets/asideWidget.html | 57 +++++++- templates/moment.html | 145 +++++++++++++++++++++ templates/moments.html | 44 ++++++- templates/page.html | 5 + templates/page_leaving.html | 64 +++++++++ templates/page_links.html | 21 +++ templates/post.html | 5 + 13 files changed, 487 insertions(+), 18 deletions(-) create mode 100644 templates/moment.html diff --git a/settings.yaml b/settings.yaml index 5f9920c..c52ca24 100644 --- a/settings.yaml +++ b/settings.yaml @@ -21,6 +21,23 @@ spec: label: 浅色模式 - value: dark label: 暗黑模式 + - $formkit: radio + name: comment_option + id: comment_option + value: default + label: 开启浅色模式背景图 + help: "需要配置好浅色模式背景图后才有效" + options: + - value: default + label: 默认 + - value: waline + label: Waline + - $formkit: text + if: "$get(comment_option).value === 'waline'" + name: waline_serverURL + label: Waline 服务端地址 + value: "" + help: "Waline 服务端地址,如 https://waline-server.herokuapp.com 不要加结尾反斜杠" - $formkit: text name: mode_color_light diff --git a/templates/links.html b/templates/links.html index 67d3c02..0983846 100644 --- a/templates/links.html +++ b/templates/links.html @@ -73,12 +73,33 @@

评论区

+ + + + +
+ + + +
diff --git a/templates/modules/common/blogger.html b/templates/modules/common/blogger.html index aef5f18..d4fd7aa 100644 --- a/templates/modules/common/blogger.html +++ b/templates/modules/common/blogger.html @@ -69,10 +69,26 @@ 标签数 -
- [[${stats.comment}]] - 评论数 -
+ +
+ [[${stats.comment}]] + 评论数 +
+
+ +
+ 0 + 评论数 +
+ +
@@ -84,10 +100,26 @@ [[${stats.post}]] 文章数 -
- [[${stats.comment}]] - 评论数 -
+ +
+ [[${stats.comment}]] + 评论数 +
+
+ +
+ 0 + 评论数 +
+ +
@@ -104,16 +136,32 @@ [[${stats.post}]] 文章数 -
- [[${stats.comment}]] - 评论数 -
-
+ +
+ [[${stats.comment}]] + 评论数 +
+
+ +
+ 0 + 评论数 +
+ +
+
- + diff --git a/templates/modules/macro/post_item.html b/templates/modules/macro/post_item.html index cd12247..9c2e595 100644 --- a/templates/modules/macro/post_item.html +++ b/templates/modules/macro/post_item.html @@ -22,7 +22,24 @@
  • [[${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}]]
  • [[${post.stats.visit}]]
  • +
  • [[${post.stats.comment}]]
  • +
    + +
  • 0
  • + + +
  • [[${post.stats.upvote}]]
diff --git a/templates/modules/widgets/asideWidget.html b/templates/modules/widgets/asideWidget.html index 49625dc..ba67ae2 100644 --- a/templates/modules/widgets/asideWidget.html +++ b/templates/modules/widgets/asideWidget.html @@ -60,8 +60,10 @@ 最新回复 -
    - +
      +
    • 头像 @@ -104,8 +106,59 @@
    • +
    + +
      +
    + + +
    +
    diff --git a/templates/moment.html b/templates/moment.html new file mode 100644 index 0000000..71a3161 --- /dev/null +++ b/templates/moment.html @@ -0,0 +1,145 @@ + + + + + +
    + +
    +
    +
    +

    [[${theme.config.journals.journals_title ?: '我的动态'}]]

    + + + +
    +
    + +
    + +
    + [[${theme.config.blogger.motto?:'一句话介绍自己吧!'}]] + + / + 正在检测是否收录... + +
    +
    +
    +
    + + + + + + +
    +
    + + + + +
    + + +
    + + + \ No newline at end of file diff --git a/templates/moments.html b/templates/moments.html index 8bf67f6..32f98f2 100644 --- a/templates/moments.html +++ b/templates/moments.html @@ -65,19 +65,59 @@
    - [[${moment.stats.totalComment}]] + + [[${moment.stats.totalComment}]] + + + 0 + + 查看评论 - + + + + + +
    + + + +
    + + + +
    diff --git a/templates/page.html b/templates/page.html index 5365d67..fedcee8 100644 --- a/templates/page.html +++ b/templates/page.html @@ -24,7 +24,12 @@
    [[${#dates.format(singlePage.spec.publishTime,'yyyy-MM-dd')}]] / + [[${singlePage.stats.comment}]] 评论 + + + 0 评论 + / [[${singlePage.stats.visit}]] 阅读 / diff --git a/templates/page_leaving.html b/templates/page_leaving.html index 692f17c..ef42a03 100644 --- a/templates/page_leaving.html +++ b/templates/page_leaving.html @@ -47,6 +47,8 @@
    + +
    • @@ -61,6 +63,68 @@
    +
    + +
      +
    + + + +
    暂无留言,期待第一个脚印。
    diff --git a/templates/page_links.html b/templates/page_links.html index 7e98c25..b390d98 100644 --- a/templates/page_links.html +++ b/templates/page_links.html @@ -62,12 +62,33 @@

    评论区

    + + + + +
    + + + +
    diff --git a/templates/post.html b/templates/post.html index 2797b15..2645967 100644 --- a/templates/post.html +++ b/templates/post.html @@ -38,7 +38,12 @@
    [[${#dates.format(post.spec.publishTime,'yyyy-MM-dd')}]] / + [[${post.stats.comment}]] 评论 + + + 0 评论 + / [[${post.stats.upvote}]] 点赞 /