From 995b84caede47033823c3e2c6a95cc78b84f07fe Mon Sep 17 00:00:00 2001
From: "1152958806@qq.com" <17683872107czx>
Date: Fri, 22 Sep 2023 14:53:48 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=A6=96=E9=A1=B5=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E6=91=98=E8=A6=81=EF=BC=8C=E8=B0=83=E6=95=B4=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E5=8D=A1=E7=89=87=E7=9B=B8=E5=85=B3=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
settings.yaml | 16 ++--
templates/assets/zhheo/zhheoblog.css | 138 +++++++++++++--------------
templates/modules/post-list.html | 26 ++---
3 files changed, 86 insertions(+), 94 deletions(-)
diff --git a/settings.yaml b/settings.yaml
index a7ec8fcf..7b4324c5 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -641,6 +641,8 @@ spec:
value: hao-icon-weixin
- label: 公众号
value: hao-icon-weixingongzhonghao
+ - label: rss
+ value: hao-icon-rss
- label: 腾讯 QQ
value: hao-icon-qq
- label: 新浪微博
@@ -961,6 +963,8 @@ spec:
value: hao-icon-weixin
- label: 公众号
value: hao-icon-weixingongzhonghao
+ - label: rss
+ value: hao-icon-rss
- label: 腾讯 QQ
value: hao-icon-qq
- label: 新浪微博
@@ -1042,6 +1046,8 @@ spec:
value: hao-icon-weixin
- label: 公众号
value: hao-icon-weixingongzhonghao
+ - label: rss
+ value: hao-icon-rss
- label: 腾讯 QQ
value: hao-icon-qq
- label: 新浪微博
@@ -1252,16 +1258,6 @@ spec:
- label: 关闭
value: false
help: 文章主色匹配图片颜色
- - $formkit: radio
- name: summarize
- label: 文章摘要(首页)
- value: false
- options:
- - label: 打开
- value: true
- - label: 关闭
- value: false
- help: 是否显示文章摘要
- $formkit: group
name: aiDescription
label: 文章 AI 摘要
diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css
index ae5f4273..746b9bde 100644
--- a/templates/assets/zhheo/zhheoblog.css
+++ b/templates/assets/zhheo/zhheoblog.css
@@ -1743,33 +1743,9 @@ blockquote footer cite::before {
-webkit-line-clamp: 3;
}
-#recent-posts>.recent-post-item .recent-post-info .pinned-post {
- display: -webkit-box;
- display: -moz-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: box;
- display: flex;
- color: var(--heo-lighttext);
- font-size: .5rem;
- position: absolute;
- top: 5px;
-}
@media screen and (max-width: 768px) {
- #recent-posts>.recent-post-item .recent-post-info .pinned-post {
- display: -webkit-box;
- display: -moz-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: box;
- display: flex;
- color: var(--heo-lighttext);
- font-size: .5rem;
- position: absolute;
- top: -19px;
- }
#recent-posts .recent-post-item {
-webkit-box-orient: vertical;
flex-direction: column;
@@ -8506,7 +8482,7 @@ li {
.recent-post-item .recent-post-info .recent-post-info-top {
position: relative;
transition: 0.3s;
- padding: 32px;
+ padding: 0 32px;
width: 100%;
}
@@ -8525,17 +8501,73 @@ li {
-webkit-box-orient: vertical;
}
-/*.recent-post-item .recent-post-info .recent-post-info-top .pinned-post {*/
-/* display: none;*/
-/*}*/
+.recent-post-item .recent-post-info .recent-post-info-top .original {
+ display: flex;
+ color: var(--heo-secondtext);
+ font-size: .5rem;
+ position: relative;
+ margin-right: 8px
+}
+
+.recent-post-info-top-tips {
+ display: flex;
+ margin-top: 20px;
+ user-select: none
+}
+
+@media screen and (max-width: 768px) {
+ .recent-post-info-top-tips {
+ display:none
+ }
+}
+
+#recent-posts>.recent-post-item>.recent-post-info .sticky-warp {
+ line-height: 23px;
+ display: -webkit-box;
+ display: -moz-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: box;
+ display: flex;
+ -webkit-box-align: center;
+ -moz-box-align: center;
+ -o-box-align: center;
+ -ms-flex-align: center;
+ -webkit-align-items: center;
+ align-items: center;
+ -webkit-box-pack: center;
+ -moz-box-pack: center;
+ -o-box-pack: center;
+ -ms-flex-pack: center;
+ -webkit-justify-content: center;
+ justify-content: center;
+ margin-right: 8px
+}
+
+#recent-posts>.recent-post-item>.recent-post-info .sticky {
+ color: #ff7242;
+ font-size: 12px
+}
+.recent-post-item .recent-post-info .recent-post-info-top .lastestpost {
+ display:flex;
+ color: var(--heo-secondtext);
+ font-size: .5rem;
+ position: relative;
+ margin-right: 8px
+}
+
+.recent-post-item .recent-post-info .recent-post-info-top a.unvisited-post {
+ display: flex;
+ color: var(--heo-secondtext);
+ font-size: .5rem;
+ position: relative
+}
+
+.recent-post-item .recent-post-info .recent-post-info-top a.unvisited-post:visited {
+ color: var(--heo-card-bg);
+}
@media screen and (min-width: 1300px) {
- #recent-posts > .recent-post-item .pinned-post {
- display: flex;
- color: var(--heo-lighttext);
- font-size: 0.5rem;
- position: relative;
- }
#recent-posts .recent-post-item.pinned-post-item .recent-post-info-top {
padding-top: 16px;
@@ -8567,6 +8599,7 @@ li {
}
.recent-post-item .recent-post-info .recent-post-info-top .content {
+ opacity: 0;
transition: 0.3s;
display: -webkit-box;
overflow: hidden;
@@ -9371,14 +9404,6 @@ span.recent-post-top-text {
padding: 0.5rem 20px;
}
- a.article-meta__categories {
- left: 12px !important;
- top: 12px !important;
- border-radius: 4px !important;
- padding: 2px 9px !important;
- font-size: 12px;
- }
-
#bbTimeList {
margin-bottom: 0rem;
}
@@ -9470,35 +9495,6 @@ span.recent-post-top-text {
margin-top: 20px!important;
} */
-.article-meta__categories {
- position: absolute;
- top: 8px;
- left: 8px;
- display: flex;
-}
-
-
-/* 自定义的文章分类 */
-a.article-meta__category {
- display: block;
- padding: 2px 6px;
- background: var(--heo-black-op);
- border-radius: 6px;
- margin: 0 5px 0 0;
- font-size: 12px;
- margin-left: 4px;
- font-weight: bold;
- color: var(--heo-white);
- backdrop-filter: saturate(180%) blur(20px);
- -webkit-backdrop-filter: blur(20px);
-}
-
-a.article-meta__category:hover {
- background: var(--heo-theme) !important;
- color: var(--heo-white) !important;
- box-shadow: var(--heo-shadow-theme);
-}
-
/* 文章卡片标题 */
#recent-posts > .recent-post-item > .recent-post-info > .article-title {
line-height: 1.4;
diff --git a/templates/modules/post-list.html b/templates/modules/post-list.html
index 59507ffb..0ca62934 100644
--- a/templates/modules/post-list.html
+++ b/templates/modules/post-list.html
@@ -22,26 +22,26 @@
th:src="${isLazyload ? loadingImg : img}">
-
-