From f18fad8b3fb4f5fb9fd7bd7474acff52cc6737c7 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <17683872107czx> Date: Wed, 18 Oct 2023 09:28:27 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B7=B1=E8=89=B2?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=AD=97=E4=BD=93=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/zhheoblog.css | 7 ++++--- templates/new_comment.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index bc69aa6e..d5eb3a02 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -6440,8 +6440,8 @@ img.footer_mini_logo:hover { } #rightMenu .rightMenu-group .rightMenu-item:hover { - background-color: var(--heo-main); - color: var(--heo-white); + background-color: var(--heo-lighttext); + color: var(--heo-card-bg); box-shadow: var(--heo-shadow-main); } @@ -8818,6 +8818,7 @@ li { } .ai-btn-item:hover { background: var(--heo-theme); + color: var(--heo-card-bg); } .ai-recommend { display: -webkit-box; @@ -11482,7 +11483,7 @@ blockquote p { /* 文章数字头 */ #article-container ol li:before, #article-container ul li:before { - background: var(--heo-theme); + background: var(--heo-main); cursor: default; } diff --git a/templates/new_comment.html b/templates/new_comment.html index 5cfc3164..56e600bb 100644 --- a/templates/new_comment.html +++ b/templates/new_comment.html @@ -337,7 +337,7 @@ width: 100%; z-index: 1; background: var(--heo-main); - color: #fff; + color: var(--heo-card-bg); margin: 0; display: flex; align-items: center; From 5098b2d41f3a5a50b26a5f7bc7540a7b4403a8ec Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <17683872107czx> Date: Wed, 18 Oct 2023 17:15:33 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E9=A1=B5=E8=84=9A=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 33 ++++++++++++++++++++++++---- templates/assets/css/fullPage.css | 8 +++++-- templates/assets/zhheo/zhheoblog.css | 19 +++++++++++++++- templates/fcircle.html | 10 +++++---- templates/modules/footer.html | 11 ++++++---- 5 files changed, 66 insertions(+), 15 deletions(-) diff --git a/settings.yaml b/settings.yaml index 9236de73..d68e3cb9 100644 --- a/settings.yaml +++ b/settings.yaml @@ -509,8 +509,6 @@ spec: value: col2 - label: 三列 value: col3 - - label: 四列 - value: col4 - $formkit: select name: postLocation label: 封面位置 @@ -933,29 +931,56 @@ spec: label: 左侧 value: [ ] children: - - $formkit: text + - $formkit: radio + name: option_social_data + label: 类型 + value: icon + help: "icon图标选择icon图标,svg代码或者图片(如果使用图片请输入完整img标签)选择自定义" + options: + - value: icon + label: icon图标 + - value: custom + label: 自定义 + - $formkit: textarea name: icon + help: "icon图标,svg代码,图片(如果使用图片请输入完整img标签)" label: 图标 + validation: "required" - $formkit: text name: name label: 名称 + validation: "required" - $formkit: text name: url label: 链接 + validation: "required" - $formkit: repeater name: socialMediaRight label: 右侧 value: [ ] children: - - $formkit: text + - $formkit: radio + name: option_social_data + label: 类型 + value: icon + options: + - value: icon + label: icon图标 + - value: custom + label: 自定义 + - $formkit: textarea name: icon + help: "icon图标或svg代码或者图片(如果使用图片请输入完整img标签)" label: 图标 + validation: "required" - $formkit: text name: name label: 名称 + validation: "required" - $formkit: text name: url label: 链接 + validation: "required" - $formkit: menuRadio name: menu label: 相关链接 diff --git a/templates/assets/css/fullPage.css b/templates/assets/css/fullPage.css index a03839ac..5f26b2bd 100644 --- a/templates/assets/css/fullPage.css +++ b/templates/assets/css/fullPage.css @@ -11,14 +11,18 @@ } -.back-home-button { +.page .back-home-button { color: rgba(255, 255, 255, 0.7); } -#nav #site-name { +.page #nav #site-name span { color: var(--light-grey); } +.nav-fixed #nav #site-name span{ + color: var(--heo-fontcolor); +} + #nav .site-page { color: rgba(255, 255, 255, 0.7); } diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index d5eb3a02..a8f72422 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -5362,10 +5362,11 @@ html { } } -.nav-fixed #nav .back-home-button { +.nav-fixed #nav .back-home-button{ color: var(--heo-fontcolor); } + .back-home-button:hover { background: var(--heo-main); color: var(--heo-white); @@ -6276,6 +6277,22 @@ a.deal_link:hover { transform: scale(1.1) } +a.custom_socials { + display: flex; + margin: 1rem 27px; + border-radius: 3rem; + width: 32px; + height: 32px; + justify-content: center; + align-items: center; + transition: 0.3s; +} + +a.custom_socials:hover { + transform: scale(1.1) +} + + img.footer_mini_logo { width: 50px; height: 50px; diff --git a/templates/fcircle.html b/templates/fcircle.html index 42b06741..d9b5df87 100644 --- a/templates/fcircle.html +++ b/templates/fcircle.html @@ -72,10 +72,12 @@ diff --git a/templates/modules/footer.html b/templates/modules/footer.html index 7136fb43..5e5e0ad8 100644 --- a/templates/modules/footer.html +++ b/templates/modules/footer.html @@ -12,9 +12,10 @@
From 9d735b18318e7247af8df76855d49ec75483a652 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Wed, 18 Oct 2023 22:27:52 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=9B=BE=E5=BA=93=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/archives.html | 2 +- templates/assets/js/heo.js | 20 +++++-- templates/category.html | 81 +---------------------------- templates/macro/post-list.html | 72 +++++++++++++++++++++++++ templates/modules/footer.html | 4 +- templates/modules/post-list.html | 2 +- templates/modules/widgets/page.html | 10 ++-- templates/photos.html | 4 ++ templates/tag.html | 78 +-------------------------- 9 files changed, 107 insertions(+), 166 deletions(-) create mode 100644 templates/macro/post-list.html diff --git a/templates/archives.html b/templates/archives.html index 2cf06a58..7c325b6e 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -53,7 +53,7 @@ - + diff --git a/templates/assets/js/heo.js b/templates/assets/js/heo.js index aba709ba..48a7d40a 100644 --- a/templates/assets/js/heo.js +++ b/templates/assets/js/heo.js @@ -484,9 +484,23 @@ var heo = { , o = document.getElementById("toPageText") , n = parseInt(o.value); if (!isNaN(n) && n > 0 && "0" !== ("" + n)[0] && n <= t) { - var a, l = window.location.href.replace(/\/page\/\d$/, ""); - a = 1 === n ? l : l + (l.endsWith("/") ? "" : "/") + "page/" + n, - document.getElementById("toPageButton").href = a + var url = window.location.href; + + var photosIndexOf = url.indexOf("?group") >= 0 ? url.indexOf("?group") : -1; + if (photosIndexOf >= 0) {//图库页面 + var new_url = url.substr(0,photosIndexOf); + var group = url.substr(photosIndexOf) + var a, l = new_url.replace(/\/page\/\d$/, ""); + a = 1 === n ? l : l + (l.endsWith("/") ? "" : "/") + "page/" + n, + document.getElementById("toPageButton").href = a + group + }else{ + var a, l = url.replace(/\/page\/\d$/, ""); + a = 1 === n ? l : l + (l.endsWith("/") ? "" : "/") + "page/" + n, + document.getElementById("toPageButton").href = a + } + //首页有第一屏就跳转指定位置 + scrollToPost(); + } }, changeSayHelloText: function() { diff --git a/templates/category.html b/templates/category.html index befcf3b1..cbf6c5d0 100644 --- a/templates/category.html +++ b/templates/category.html @@ -32,85 +32,8 @@ 更多 - + +