Merge pull request #217 from liuzhihang/revert-216-main

Revert "修复最新评论,文章摘要,优化上下页阅读建议"
This commit is contained in:
小孙同学 2023-06-30 09:04:52 +08:00 committed by GitHub
commit 5db3768bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 140 additions and 232 deletions

View File

@ -661,16 +661,6 @@ spec:
- label: 关闭 - label: 关闭
value: false value: false
help: "文章主色匹配图片颜色" help: "文章主色匹配图片颜色"
- $formkit: radio
name: summarize
label: 文章摘要
value: false
options:
- label: 打开
value: true
- label: 关闭
value: false
help: "是否显示文章摘要"
- $formkit: number - $formkit: number
name: recommendQuantity name: recommendQuantity
label: 阅读建议 label: 阅读建议
@ -1328,11 +1318,6 @@ spec:
label: Twikoo评论-mailMd5 label: Twikoo评论-mailMd5
placeholder: 请输入mailMd5 placeholder: 请输入mailMd5
help: 注意格式 (`mailMd5`) help: 注意格式 (`mailMd5`)
- $formkit: number
name: newcommentnumber
label: 评论数量
value: 5
help: "最新评论数量"
- group: other - group: other
label: 其他设置 label: 其他设置
formSchema: formSchema:

View File

@ -1953,7 +1953,7 @@ blockquote footer cite::before {
width: 100%; width: 100%;
position: relative; position: relative;
} }
#error-wrap .error-content { #error-wrap .error-content {
display: flex; display: flex;
-webkit-box-orient: horizontal; -webkit-box-orient: horizontal;
@ -1973,11 +1973,11 @@ blockquote footer cite::before {
position: relative; position: relative;
width: 100%; width: 100%;
} }
#error-wrap .error-content:hover { #error-wrap .error-content:hover {
box-shadow: var(--card-hover-box-shadow); box-shadow: var(--card-hover-box-shadow);
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#error-wrap .error-content { #error-wrap .error-content {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
@ -1987,7 +1987,7 @@ blockquote footer cite::before {
width: 100%; width: 100%;
} }
} }
#error-wrap .error-content .error-img { #error-wrap .error-content .error-img {
-webkit-box-flex: 1; -webkit-box-flex: 1;
flex: 1 1 0%; flex: 1 1 0%;
@ -1999,7 +1999,7 @@ blockquote footer cite::before {
background-position: center center; background-position: center center;
background-size: cover; background-size: cover;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#error-wrap .error-content .error-img { #error-wrap .error-content .error-img {
-webkit-box-flex: 1; -webkit-box-flex: 1;
@ -2008,7 +2008,7 @@ blockquote footer cite::before {
border-radius: 12px; border-radius: 12px;
} }
} }
#error-wrap .error-content .error-info { #error-wrap .error-content .error-info {
-webkit-box-flex: 1; -webkit-box-flex: 1;
flex: 1 1 0%; flex: 1 1 0%;
@ -2017,13 +2017,13 @@ blockquote footer cite::before {
font-size: 14px; font-size: 14px;
font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
} }
#error-wrap .error-content .error-info .error_title { #error-wrap .error-content .error-info .error_title {
font-size: 9em; font-size: 9em;
line-height: 1; line-height: 1;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#error-wrap .error-content .error-info { #error-wrap .error-content .error-info {
-webkit-box-flex: 1.1; -webkit-box-flex: 1.1;
@ -2031,19 +2031,19 @@ blockquote footer cite::before {
width: 100%; width: 100%;
padding-bottom: 2rem; padding-bottom: 2rem;
} }
#error-wrap .error-content .error-info .error_title { #error-wrap .error-content .error-info .error_title {
font-size: 4rem; font-size: 4rem;
} }
} }
#error-wrap .error-content .error-info .error_subtitle { #error-wrap .error-content .error-info .error_subtitle {
word-break: break-word; word-break: break-word;
font-size: 1.6em; font-size: 1.6em;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
} }
#error-wrap .error-content .error-info a { #error-wrap .error-content .error-info a {
display: inline-block; display: inline-block;
margin-top: 0.5rem; margin-top: 0.5rem;
@ -2051,7 +2051,7 @@ blockquote footer cite::before {
background: var(--btn-bg); background: var(--btn-bg);
color: var(--btn-color); color: var(--btn-color);
} }
#error-wrap .error-content .error-info a i { #error-wrap .error-content .error-info a i {
padding-right: 0.3rem; padding-right: 0.3rem;
} }
@ -3163,7 +3163,6 @@ ul {
opacity: 0.4; opacity: 0.4;
transition: all 0.6s ease 0s; transition: all 0.6s ease 0s;
object-fit: cover; object-fit: cover;
color: white;
} }
#pagination .pagination-info { #pagination .pagination-info {
@ -3216,14 +3215,6 @@ ul {
height: 150px; height: 150px;
} }
#pagination .next-post2 a,
#pagination .prev-post2 a {
position: relative;
display: block;
overflow: hidden;
height: 150px;
}
#pagination .next-post:hover img.next-cover, #pagination .next-post:hover img.next-cover,
#pagination .next-post:hover img.prev-cover, #pagination .next-post:hover img.prev-cover,
#pagination .prev-post:hover img.next-cover, #pagination .prev-post:hover img.next-cover,
@ -8002,37 +7993,37 @@ span.fund_name {
border: var(--style-border); border: var(--style-border);
animation: barrageIn 0.6s cubic-bezier(0.42, 0, 0.3, 1.11); animation: barrageIn 0.6s cubic-bezier(0.42, 0, 0.3, 1.11);
} }
#cookies-window.cw-hide { #cookies-window.cw-hide {
opacity: 0; opacity: 0;
animation: barrageOut 0.6s cubic-bezier(0.42, 0, 0.3, 1.11); animation: barrageOut 0.6s cubic-bezier(0.42, 0, 0.3, 1.11);
z-index: -1; z-index: -1;
} }
#cookies-window .cookies-window-title { #cookies-window .cookies-window-title {
padding-bottom: 4px; padding-bottom: 4px;
border-bottom: var(--style-border); border-bottom: var(--style-border);
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
} }
#cookies-window .cookies-window-content { #cookies-window .cookies-window-content {
font-size: 14px; font-size: 14px;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
} }
.cookie-to { .cookie-to {
margin-right: 4px; margin-right: 4px;
font-weight: bold; font-weight: bold;
} }
.cookies-link { .cookies-link {
margin-left: auto; margin-left: auto;
font-size: 16px; font-size: 16px;
} }
.cookies-link i.heofont { .cookies-link i.heofont {
font-size: 16px; font-size: 16px;
} }
@ -9005,10 +8996,10 @@ li {
display: -webkit-box; display: -webkit-box;
overflow: hidden; overflow: hidden;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 1; -webkit-line-clamp: 2;
line-height: 1.4; line-height: 1.4;
color: var(--heo-secondtext); color: var(--heo-secondtext);
margin-top: 0.4rem; margin-top: 0.5rem;
} }
@media screen and (max-width: 1300px) { @media screen and (max-width: 1300px) {
@ -9183,13 +9174,13 @@ li {
border: var(--style-border-always); border: var(--style-border-always);
margin-top: 16px; margin-top: 16px;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.post-ai { .post-ai {
margin-top: 22px; margin-top: 22px;
} }
} }
.ai-title { .ai-title {
display: flex; display: flex;
color: var(--heo-lighttext); color: var(--heo-lighttext);
@ -9199,13 +9190,13 @@ li {
cursor: default; cursor: default;
user-select: none; user-select: none;
} }
.ai-title-text { .ai-title-text {
font-weight: bold; font-weight: bold;
margin-left: 8px; margin-left: 8px;
line-height: 1; line-height: 1;
} }
.ai-explanation { .ai-explanation {
margin-top: 12px; margin-top: 12px;
padding: 8px 12px; padding: 8px 12px;
@ -9216,12 +9207,12 @@ li {
line-height: 1.4; line-height: 1.4;
display: none; display: none;
} }
.ai-suggestions { .ai-suggestions {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.ai-suggestions .ai-suggestions-item { .ai-suggestions .ai-suggestions-item {
margin-top: 12px; margin-top: 12px;
padding: 8px 12px; padding: 8px 12px;
@ -9236,12 +9227,12 @@ li {
cursor: pointer; cursor: pointer;
transition: 0.3s; transition: 0.3s;
} }
.ai-suggestions .ai-suggestions-item:hover { .ai-suggestions .ai-suggestions-item:hover {
background: var(--heo-main); background: var(--heo-main);
color: var(--heo-white); color: var(--heo-white);
} }
.blinking-cursor { .blinking-cursor {
background-color: var(--heo-main); background-color: var(--heo-main);
width: 10px; width: 10px;
@ -9253,7 +9244,7 @@ li {
margin-left: 4px; margin-left: 4px;
margin-bottom: 3px; margin-bottom: 3px;
} }
@keyframes blinking-cursor { @keyframes blinking-cursor {
0% { 0% {
opacity: 1; opacity: 1;
@ -9271,7 +9262,7 @@ li {
opacity: 1; opacity: 1;
} }
} }
.ai-tag { .ai-tag {
font-size: 12px; font-size: 12px;
background-color: var(--heo-lighttext); background-color: var(--heo-lighttext);
@ -9287,12 +9278,12 @@ li {
cursor: pointer; cursor: pointer;
transition: 0.3s; transition: 0.3s;
} }
.ai-tag:hover { .ai-tag:hover {
background: var(--heo-fontcolor); background: var(--heo-fontcolor);
color: var(--heo-card-bg); color: var(--heo-card-bg);
} }
ins.adsbygoogle { ins.adsbygoogle {
margin: 16px 0; margin: 16px 0;
background: var(--heo-card-bg); background: var(--heo-card-bg);
@ -9300,7 +9291,7 @@ li {
overflow: hidden; overflow: hidden;
border: var(--style-border-always); border: var(--style-border-always);
} }
#ai-Toggle { #ai-Toggle {
font-size: 12px; font-size: 12px;
background: var(--heo-lighttext); background: var(--heo-lighttext);
@ -9313,7 +9304,7 @@ li {
transition: 0.3s; transition: 0.3s;
font-weight: bold; font-weight: bold;
} }
#ai-Toggle:hover { #ai-Toggle:hover {
background: var(--heo-fontcolor); background: var(--heo-fontcolor);
color: var(--heo-card-bg); color: var(--heo-card-bg);
@ -10662,11 +10653,11 @@ a.extend.prev {
height: 30rem !important; height: 30rem !important;
margin-bottom: -12px; margin-bottom: -12px;
} }
#page-header.post-bg:before { #page-header.post-bg:before {
height: 15rem; height: 15rem;
} }
.post-bg #post-cover { .post-bg #post-cover {
min-height: 15rem !important; min-height: 15rem !important;
height: 70% !important; height: 70% !important;
@ -10678,18 +10669,18 @@ a.extend.prev {
#page-header.post-bg { #page-header.post-bg {
height: 25rem; height: 25rem;
} }
#page-header { #page-header {
height: 25rem; height: 25rem;
} }
#page-header.post-bg:before { #page-header.post-bg:before {
height: 25rem; height: 25rem;
/* opacity: 0; */ /* opacity: 0; */
background-color: var(--heo-main); background-color: var(--heo-main);
animation: slide-in-op 0.6s 0s forwards; animation: slide-in-op 0.6s 0s forwards;
} }
#post-info .post-title { #post-info .post-title {
width: 1100px; width: 1100px;
font-size: 2.6rem !important; font-size: 2.6rem !important;
@ -10766,14 +10757,14 @@ a.extend.prev {
filter: blur(10px); filter: blur(10px);
opacity: 0; opacity: 0;
} }
.coverdiv.loaded { .coverdiv.loaded {
display: block; display: block;
opacity: 0.5; opacity: 0.5;
animation: showCover 1s 0.3s backwards; animation: showCover 1s 0.3s backwards;
transform: rotate(10deg) translateY(-10%) scale(2); transform: rotate(10deg) translateY(-10%) scale(2);
} }
} }
@ -10790,15 +10781,15 @@ a.extend.prev {
filter: blur(10px); filter: blur(10px);
opacity: 0; opacity: 0;
} }
.coverdiv.loaded { .coverdiv.loaded {
display: block; display: block;
opacity: 0.5; opacity: 0.5;
animation: showCover 1s 0.3s backwards; animation: showCover 1s 0.3s backwards;
transform: rotate(10deg) translateY(-10%) scale(2); transform: rotate(10deg) translateY(-10%) scale(2);
} }
@keyframes showCover { @keyframes showCover {
from { from {
opacity: 0; opacity: 0;
@ -11461,11 +11452,11 @@ details:not(.tk-admin-config-group) {
border: var(--style-border); border: var(--style-border);
transition: border 0.3s; transition: border 0.3s;
} }
details:not(.tk-admin-config-group):hover { details:not(.tk-admin-config-group):hover {
border: var(--style-border-hover-always); border: var(--style-border-hover-always);
} }
details:not(.tk-admin-config-group) summary { details:not(.tk-admin-config-group) summary {
position: absolute; position: absolute;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
@ -11481,21 +11472,21 @@ details:not(.tk-admin-config-group) summary {
overflow: hidden; /* 超出部分隐藏 */ overflow: hidden; /* 超出部分隐藏 */
text-overflow: ellipsis; /* 超出部分用省略号表示 */ text-overflow: ellipsis; /* 超出部分用省略号表示 */
} }
details:not(.tk-admin-config-group) > *:nth-child(2) { details:not(.tk-admin-config-group) > *:nth-child(2) {
margin-top: calc(54px + 1rem) !important; margin-top: calc(54px + 1rem) !important;
} }
details[open]:not(.tk-admin-config-group) summary { details[open]:not(.tk-admin-config-group) summary {
background: var(--heo-main); background: var(--heo-main);
color: var(--heo-white); color: var(--heo-white);
} }
details:not(.tk-admin-config-group) summary::before { details:not(.tk-admin-config-group) summary::before {
content: ''; content: '';
padding: 4px; padding: 4px;
} }
details:not(.tk-admin-config-group) summary:hover { details:not(.tk-admin-config-group) summary:hover {
cursor: pointer; cursor: pointer;
background: var(--heo-main); background: var(--heo-main);
@ -11503,31 +11494,31 @@ details:not(.tk-admin-config-group) summary:hover {
transition: 0.3s; transition: 0.3s;
box-shadow: var(--heo-shadow-main); box-shadow: var(--heo-shadow-main);
} }
details:not(.tk-admin-config-group) summary:focus { details:not(.tk-admin-config-group) summary:focus {
outline: none; outline: none;
} }
details:not(.tk-admin-config-group) summary::marker { details:not(.tk-admin-config-group) summary::marker {
color: var(--heo-main); color: var(--heo-main);
transition: 0.3s; transition: 0.3s;
} }
details[open]:not(.tk-admin-config-group) summary::marker { details[open]:not(.tk-admin-config-group) summary::marker {
color: var(--heo-white); color: var(--heo-white);
} }
details:not(.tk-admin-config-group) summary:hover::marker { details:not(.tk-admin-config-group) summary:hover::marker {
color: var(--heo-white); color: var(--heo-white);
} }
details[open]:not(.tk-admin-config-group) { details[open]:not(.tk-admin-config-group) {
border-radius: 12px; border-radius: 12px;
border: var(--style-border-hover-always); border: var(--style-border-hover-always);
padding: 0 1.5rem; padding: 0 1.5rem;
background: var(--heo-card-bg); background: var(--heo-card-bg);
} }
details:not(.tk-admin-config-group) summary:hover:after { details:not(.tk-admin-config-group) summary:hover:after {
position: absolute; position: absolute;
content: '+'; content: '+';
@ -11537,11 +11528,11 @@ details:not(.tk-admin-config-group) summary:hover:after {
right: 16px; right: 16px;
line-height: 1; line-height: 1;
} }
details[open]:not(.tk-admin-config-group) > summary:hover:after { details[open]:not(.tk-admin-config-group) > summary:hover:after {
content: '-'; content: '-';
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
details[open]:not(.tk-admin-config-group) { details[open]:not(.tk-admin-config-group) {
padding: 0 16px; padding: 0 16px;
@ -12436,46 +12427,7 @@ a.reward-main-btn:hover {
.prev-post.pull-left, .prev-post.pull-left,
#pagination .prev-post, #pagination .prev-post,
#pagination .next-post { #pagination .next-post {
background: #363636; background: var(--heo-secondbg);
}
.next-post2.pull-right,
.prev-post2.pull-left,
#pagination .prev-post2,
#pagination .next-post2 {
background: #363636;
}
#preimg{
position: absolute;
width: 100%;
height: 100%;
opacity: .4;
-webkit-transition: all .6s,filter 375ms ease-in .2s;
-moz-transition: all .6s,filter 375ms ease-in .2s;
-o-transition: all .6s,filter 375ms ease-in .2s;
-ms-transition: all .6s,filter 375ms ease-in .2s;
transition: all .6s,filter 375ms ease-in .2s;
object-fit: cover;
border-radius: 0;
}
.prev-post2.pull-left:hover #preimg {
opacity: 1;
transform: scale(1.1);
}
.prev-post.pull-left:hover #preimg {
opacity: 1;
transform: scale(1.1);
}
.next-post.pull-right:hover #preimg {
opacity: 1;
transform: scale(1.1);
}
.next-post2.pull-right:hover #preimg {
opacity: 1;
transform: scale(1.1);
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
@ -12552,17 +12504,12 @@ a.reward-main-btn:hover {
#post #pagination .prev-post .label, #post #pagination .prev-post .label,
#pagination .next-post .label { #pagination .next-post .label {
color: white; color: var(--heo-fontcolor);
}
#post #pagination .prev-post2 .label,
#pagination .next-post2 .label {
color: white;
} }
#post #pagination .prev_info, #post #pagination .prev_info,
#pagination .next_info { #pagination .next_info {
color: white; color: var(--heo-fontcolor);
font-weight: bold; font-weight: bold;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
white-space: normal; white-space: normal;
@ -12870,15 +12817,14 @@ a.reward-main-btn:hover {
} }
.relatedPosts > .relatedPosts-list > div { .relatedPosts > .relatedPosts-list > div {
background: #363636; background: var(--heo-background);
transition: 0.3s; transition: 0.3s;
cursor: pointer; cursor: pointer;
overflow: hidden; overflow: hidden;
} }
.relatedPosts > .relatedPosts-list > div:hover #preimg{ .relatedPosts > .relatedPosts-list > div:hover {
opacity: 1; background: var(--heo-main);
transform: scale(1.1);
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
@ -12907,11 +12853,12 @@ a.reward-main-btn:hover {
line-height: 1.5; line-height: 1.5;
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
font-size: 0.9rem; font-size: 0.9rem;
text-align: center; text-align: left;
} }
.relatedPosts > .relatedPosts-list .content .date { .relatedPosts > .relatedPosts-list .content .date {
color: var(--heo-fontcolor); color: var(--heo-fontcolor);
display: none;
} }
/* 分割线 */ /* 分割线 */
@ -12952,7 +12899,7 @@ a.reward-main-btn:hover {
div#post-comment { div#post-comment {
margin-top: 2rem; margin-top: 2rem;
} }
#post-comment>div.comment-head>div.comment-privacy { #post-comment>div.comment-head>div.comment-privacy {
display: block; display: block;
justify-content: space-between; justify-content: space-between;
@ -12960,7 +12907,7 @@ div#post-comment {
font-size: 13px; font-size: 13px;
margin-left: auto; margin-left: auto;
} }
#post-comment>div.comment-head>div.comment-privacy a:hover { #post-comment>div.comment-head>div.comment-privacy a:hover {
color: var(--heo-theme); color: var(--heo-theme);
} }
@ -14722,7 +14669,7 @@ figure.gallery-group:hover .gallery-group-name::after {
border-radius: 12px; border-radius: 12px;
background: var(--heo-card-bg) !important; background: var(--heo-card-bg) !important;
} }
#body-wrap.page .errors { #body-wrap.page .errors {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -14732,7 +14679,7 @@ figure.gallery-group:hover .gallery-group-name::after {
padding-top: 50px; padding-top: 50px;
position: relative; position: relative;
} }
#body-wrap.page .errors .aside-list { #body-wrap.page .errors .aside-list {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -14740,7 +14687,7 @@ figure.gallery-group:hover .gallery-group-name::after {
margin: 1rem; margin: 1rem;
max-width: 100%; max-width: 100%;
} }
#body-wrap.page .errors .aside-list .aside-list-group { #body-wrap.page .errors .aside-list .aside-list-group {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -14749,18 +14696,18 @@ figure.gallery-group:hover .gallery-group-name::after {
margin: 0 auto; margin: 0 auto;
justify-content: space-between; justify-content: space-between;
} }
#body-wrap.page .errors .aside-list .aside-list-item { #body-wrap.page .errors .aside-list .aside-list-item {
padding: 0.5rem 0; padding: 0.5rem 0;
width: 49%; width: 49%;
} }
#body-wrap.page .errors .aside-list .aside-list-item img { #body-wrap.page .errors .aside-list .aside-list-item img {
width: 100%; width: 100%;
object-fit: cover; object-fit: cover;
border-radius: 12px; border-radius: 12px;
} }
#body-wrap.page .errors .aside-list .aside-list-item .thumbnail { #body-wrap.page .errors .aside-list .aside-list-item .thumbnail {
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
@ -14768,7 +14715,7 @@ figure.gallery-group:hover .gallery-group-name::after {
background: var(--heo-card-bg); background: var(--heo-card-bg);
display: flex; display: flex;
} }
#body-wrap.page .errors .aside-list .aside-list-item .content .title { #body-wrap.page .errors .aside-list .aside-list-item .content .title {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
overflow: hidden; overflow: hidden;
@ -14782,21 +14729,21 @@ figure.gallery-group:hover .gallery-group-name::after {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
} }
#body-wrap.page .errors .aside-list .aside-list-item .content time { #body-wrap.page .errors .aside-list .aside-list-item .content time {
display: none; display: none;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#body-wrap.page .errors { #body-wrap.page .errors {
padding-top: 0; padding-top: 0;
} }
#body-wrap.page .errors .aside-list { #body-wrap.page .errors .aside-list {
margin: 0; margin: 0;
} }
#body-wrap.page .errors .aside-list .aside-list-item .thumbnail { #body-wrap.page .errors .aside-list .aside-list-item .thumbnail {
height: 100px; height: 100px;
} }
@ -15675,7 +15622,7 @@ span.hexo-douban-pagenum {
@keyframes floating { @keyframes floating {
0% { transform: translate(0, -4px); } 0% { transform: translate(0, -4px); }
50% { transform: translate(0, 4px); } 50% { transform: translate(0, 4px); }
100% { transform: translate(0, -4px); } 100% { transform: translate(0, -4px); }
} }
#about-page .author-info { #about-page .author-info {
@ -15683,33 +15630,33 @@ span.hexo-douban-pagenum {
align-items: center; align-items: center;
margin: 0 0 16px 0; margin: 0 0 16px 0;
} }
#about-page .author-tag-left { #about-page .author-tag-left {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-end; align-items: flex-end;
} }
#about-page .author-tag-right { #about-page .author-tag-right {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#about-page .author-tag-left,#about-page .author-tag-right { #about-page .author-tag-left,#about-page .author-tag-right {
display: none; display: none;
} }
} }
#about-page .author-tag-left .author-tag:first-child, #about-page .author-tag-left .author-tag:last-child { #about-page .author-tag-left .author-tag:first-child, #about-page .author-tag-left .author-tag:last-child {
margin-right: -16px; margin-right: -16px;
} }
#about-page .author-tag-right .author-tag:first-child, #about-page .author-tag-right .author-tag:last-child { #about-page .author-tag-right .author-tag:first-child, #about-page .author-tag-right .author-tag:last-child {
margin-left: -16px; margin-left: -16px;
} }
#about-page .author-tag { #about-page .author-tag {
transform: translate(0, -4px); transform: translate(0, -4px);
padding: 1px 8px; padding: 1px 8px;
@ -15722,19 +15669,19 @@ span.hexo-douban-pagenum {
box-shadow: var(--heo-shadow-lightblack); box-shadow: var(--heo-shadow-lightblack);
animation: 6s ease-in-out 0s infinite normal none running floating; animation: 6s ease-in-out 0s infinite normal none running floating;
} }
#about-page .author-tag:nth-child(1) { #about-page .author-tag:nth-child(1) {
animation-delay: 0s; animation-delay: 0s;
} }
#about-page .author-tag:nth-child(2) { #about-page .author-tag:nth-child(2) {
animation-delay: 0.6s; animation-delay: 0.6s;
} }
#about-page .author-tag:nth-child(3) { #about-page .author-tag:nth-child(3) {
animation-delay: 1.2s; animation-delay: 1.2s;
} }
#about-page .author-tag:nth-child(4) { #about-page .author-tag:nth-child(4) {
animation-delay: 1.8s; animation-delay: 1.8s;
} }
@ -17019,8 +16966,8 @@ span.hexo-douban-pagenum {
margin-right: 8px; margin-right: 8px;
border-radius: 20px; border-radius: 20px;
} }
#card-newest-comments .aside-list-item { #card-newest-comments .aside-list-item {
background: var(--heo-card-bg); background: var(--heo-card-bg);
border-radius: 12px; border-radius: 12px;
@ -17033,22 +16980,22 @@ span.hexo-douban-pagenum {
transition: 0.3s; transition: 0.3s;
position: relative; position: relative;
} }
#card-newest-comments .aside-list-item:hover { #card-newest-comments .aside-list-item:hover {
background: var(--heo-main); background: var(--heo-main);
color: var(--heo-white); color: var(--heo-white);
} }
#card-newest-comments .aside-list-item:not(:last-child) { #card-newest-comments .aside-list-item:not(:last-child) {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
#card-newest-comments .aside-list-item .name { #card-newest-comments .aside-list-item .name {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
font-weight: bold; font-weight: bold;
} }
#console .author-content-item-tips { #console .author-content-item-tips {
opacity: .8; opacity: .8;
@ -17087,7 +17034,7 @@ span.hexo-douban-pagenum {
line-height: 24px; line-height: 24px;
font-size: 14px; font-size: 14px;
} }
#console .aside-list-item .content .comment::before { #console .aside-list-item .content .comment::before {
content: ''; content: '';
width: 100%; width: 100%;
@ -17327,17 +17274,17 @@ span.hexo-douban-pagenum {
height: 24px; height: 24px;
} }
/* 文章目录样式 */ /* 文章目录样式 */
a.toc-link { a.toc-link {
color: currentColor; color: currentColor;
height:0%; height:0%;
} }
/* 文章目录样式 */ /* 文章目录样式 */
#aside-content #card-toc .toc-content .is-active-link { #aside-content #card-toc .toc-content .is-active-link {
font-weight: 700; font-weight: 700;
font-size: 20px; font-size: 20px;
color: var(--heo-lighttext); color: var(--heo-lighttext);
} }
/* code样式 */ /* code样式 */
code:not([class]) { code:not([class]) {
color: var(--heo-white); color: var(--heo-white);
@ -17349,22 +17296,22 @@ a.toc-link {
box-shadow: var(--heo-shadow-border); box-shadow: var(--heo-shadow-border);
font-size: 17.5px; font-size: 17.5px;
font-family: consolas, Menlo, "PingFang SC", "Microsoft YaHei", sans-serif !important; font-family: consolas, Menlo, "PingFang SC", "Microsoft YaHei", sans-serif !important;
} }
/* 导航栏中间返回顶部样式 */ /* 导航栏中间返回顶部样式 */
#page-header.nav-fixed #nav #page-name-text { #page-header.nav-fixed #nav #page-name-text {
display: inline; display: inline;
opacity: 1; opacity: 1;
transition: 0.3s; transition: 0.3s;
line-height: 1.6; line-height: 1.6;
} }
.nav-fixed #nav #page-name-text:hover { .nav-fixed #nav #page-name-text:hover {
background: var(--heo-main); background: var(--heo-main);
transition: 0.3s; transition: 0.3s;
border-radius: 50px; border-radius: 50px;
padding: 4px 8px; padding: 4px 8px;
} }
@media screen and (min-width: 900px) { @media screen and (min-width: 900px) {
@ -17412,11 +17359,11 @@ a.toc-link {
align-items: center; align-items: center;
text-shadow: none; text-shadow: none;
border-radius: 40px; border-radius: 40px;
} }
/* 导航栏中间样式 */ /* 导航栏中间样式 */
#menus>div.menus_items a { #menus>div.menus_items a {
font-size: 16.8px; font-size: 16.8px;
font-weight: 700; font-weight: 700;
@ -17424,11 +17371,7 @@ a.toc-link {
#nav .menus_items .menus_item .menus_item_child { #nav .menus_items .menus_item .menus_item_child {
padding: 2px 2px 4px 2px; padding: 2px 2px 4px 2px;
border-radius: 55px; border-radius: 55px;
} }
#nav .menus_items .menus_item .menus_item_child li a:hover { #nav .menus_items .menus_item .menus_item_child li a:hover {
padding: 0.2rem 0.5rem; padding: 0.2rem 0.5rem;
} }
.postcarnepre{
width: 100%;
}

View File

@ -39,7 +39,7 @@
th:href="@{${post.status.permalink}}" th:href="@{${post.status.permalink}}"
th:text="${post.spec.title}"> th:text="${post.spec.title}">
</a> </a>
<div class="content" th:if="${theme.config.post.summarize}" th:text="${post.status.excerpt}"></div> <div class="content" th:text="${post.status.excerpt}"></div>
</div> </div>
@ -87,4 +87,4 @@
</th:block> </th:block>
</html> </html>

View File

@ -3,39 +3,23 @@
<!-- 归档 --> <!-- 归档 -->
<div class="card-widget card-recent-post" th:fragment="comments"> <div class="card-widget card-recent-post" th:fragment="comments">
<div class="item-headline"><i class="iconfont icon-comment-dots"></i><span>最新评论</span></div> <div class="item-headline"><i class="iconfont icon-comment-dots"></i><span>最新评论</span></div>
<div class="aside-list" id="newcomm"> <div class="aside-list">
</div> <div class="aside-list-item">
</div> <a class="thumbnail" href="/404.html">
<script th:src="@{/assets/libs/twikoo/twikoo.all.min.js}"></script> <img loading="lazy" alt="dasda" src="https://seccdn.libravatar.org/avatar/7d88658473effdd6b068e181b9636878?d=robohash">
<script th:if="${theme.config.comments.twikoo && #strings.equals(theme.config.comments.use, 'Twikoo') && not #strings.isEmpty(theme.config.comments.envId)}">
twikoo.getRecentComments({
envId: [[${ theme.config.comments.envId }]], // 环境 ID
// region: 'ap-guangzhou', // 环境地域,默认为 ap-shanghai如果您的环境地域不是上海需传此参数
pageSize: [[${theme.config.comments.newcommentnumber}]], // 获取多少条默认10最大100
includeReply: false // 是否包括最新回复默认false
}).then(function (res) {
let commenthtml = '';
res.forEach((items)=>{
commenthtml += `<div class="aside-list-item">
<a class="thumbnail" href="${items.url}">
<img loading="lazy" alt="dasda" src="${items.avatar}">
</a> </a>
<div class="content"> <div class="content">
<a class="comment" style="display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;" href="${items.url}" title="test"> <a class="comment" href="/messageboard/#635ba6370ccf12000f30a175" title="test">
${items.commentText} 评论模块未完成
</a> </a>
<div class="name"> <div class="name">
<span>${items.nick} / </span> <span>liuzhihang / </span>
<time datetime="${items.created}">${items.relativeTime}</time> <time datetime="2022-10-28T09:51:51.581Z">20 小時前</time>
</div> </div>
</div> </div>
</div>` </div>
}); </div>
document.querySelector('#newcomm').innerHTML = commenthtml; </div>
}).catch(function (err) {
// 发生错误 </html>
console.error(err);
});
</script>
</html>

View File

@ -511,7 +511,7 @@
<a class="post-meta__tags" th:each="tag : ${post.tags}" <a class="post-meta__tags" th:each="tag : ${post.tags}"
th:href="@{${tag.status.permalink}}"> th:href="@{${tag.status.permalink}}">
<span class="tags-punctuation">[[${tag.spec.displayName}]]</span> <span class="tags-punctuation">[[${tag.spec.displayName}]]</span>
<span class="tagsPageCount" th:text="${tag.status.visiblePostCount}"></span> <span class="tagsPageCount" th:text="${tag.status.visiblePostCount}"></span>
</a> </a>
</div> </div>
@ -541,20 +541,16 @@
</div> </div>
<nav class="pagination-post" id="pagination" <nav class="pagination-post" id="pagination"
th:with="postCursor = ${postFinder.cursor(post.metadata.name)}"> th:with="postCursor = ${postFinder.cursor(post.metadata.name)}">
<div th:class="${postCursor.hasPrevious()==true && postCursor.hasNext()==false} ? 'prev-post2 pull-left postcarnepre' : 'prev-post pull-left'"> <div class="prev-post pull-left">
<a th:if="${postCursor.hasPrevious()}" th:href="@{${postCursor.previous.status.permalink}}"> <a th:if="${postCursor.hasPrevious()}" th:href="@{${postCursor.previous.status.permalink}}">
<img alt="cover" id="preimg" class="nolazyload"
th:src="${#strings.isEmpty(postCursor.previous.spec.cover) ? theme.config.layout.postRandomImg : postCursor.previous.spec.cover}">
<div class="pagination-info"> <div class="pagination-info">
<div class="label">上一篇</div> <div class="label">上一篇</div>
<div class="prev_info" th:text="${postCursor.previous.spec.title}"></div> <div class="prev_info" th:text="${postCursor.previous.spec.title}"></div>
</div> </div>
</a> </a>
</div> </div>
<div th:class="${postCursor.hasPrevious()==false && postCursor.hasNext()==true} ? 'next-post2 pull-right postcarnepre':'next-post pull-right'"> <div class="next-post pull-right">
<a th:if="${postCursor.hasNext()}" th:href="@{${postCursor.next.status.permalink}}"> <a th:if="${postCursor.hasNext()}" th:href="@{${postCursor.next.status.permalink}}">
<img alt="cover" id="preimg" class="nolazyload"
th:src="${#strings.isEmpty(postCursor.next.spec.cover) ? theme.config.layout.postRandomImg : postCursor.next.spec.cover}">
<div class="pagination-info"> <div class="pagination-info">
<div class="label">下一篇</div> <div class="label">下一篇</div>
<div class="next_info" th:text="${postCursor.next.spec.title}"></div> <div class="next_info" th:text="${postCursor.next.spec.title}"></div>
@ -573,13 +569,13 @@
<!-- 建议阅读,这里可以自定义文章数量,然后遍历展示 --> <!-- 建议阅读,这里可以自定义文章数量,然后遍历展示 -->
<div th:each="recommandPost :${recommandPosts}"> <div th:each="recommandPost :${recommandPosts}">
<a th:href="@{${recommandPost.status.permalink}}" th:title="${recommandPost.spec.title}"> <a th:href="@{${recommandPost.status.permalink}}" th:title="${recommandPost.spec.title}">
<img alt="cover" class="cover" loading="lazy" id="preimg" <img alt="cover" class="cover" loading="lazy"
th:src="${#strings.isEmpty(recommandPost.spec.cover) ? theme.config.layout.postRandomImg : recommandPost.spec.cover}"> th:src="${#strings.isEmpty(recommandPost.spec.cover) ? theme.config.layout.postRandomImg : recommandPost.spec.cover}">
<div class="content is-center" > <div class="content is-center">
<div class="date" style="color: white"><i class="far fa-calendar-alt fa-fw"></i> <div class="date"><i class="far fa-calendar-alt fa-fw"></i>
[[${#dates.format(recommandPost.spec.publishTime,'yyyy-MM-dd HH:mm:ss')}]] [[${#dates.format(recommandPost.spec.publishTime,'yyyy-MM-dd HH:mm:ss')}]]
</div> </div>
<div class="title" style="color: white" th:text="${recommandPost.spec.title}"></div> <div class="title" th:text="${recommandPost.spec.title}"></div>
</div> </div>
</a> </a>
</div> </div>
@ -603,7 +599,7 @@
<halo:comment group="content.halo.run" kind="SinglePage" th:attr="name='links'" <halo:comment group="content.halo.run" kind="SinglePage" th:attr="name='links'"
colorScheme="document.documentElement.getAttribute('data-theme')" /> colorScheme="document.documentElement.getAttribute('data-theme')" />
</div> </div>
</div> </div>
<!-- 侧栏 --> <!-- 侧栏 -->
@ -617,4 +613,4 @@
</th:block> </th:block>
</html> </html>