From 6d8df08d1cc684b1d0cbf55be373f33baadd88fb Mon Sep 17 00:00:00 2001 From: liuzhihang Date: Sat, 22 Oct 2022 16:24:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=AE=E5=BD=95=20tag=20?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=B1=95=E7=A4=BA=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20toc=20=E7=A7=BB=E9=99=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/zhheoblog.css | 2 +- templates/category.html | 2 +- templates/modules/widgets/aside/toc.html | 2 +- templates/post.html | 30 ++++++++---------------- templates/tag.html | 2 +- 5 files changed, 14 insertions(+), 24 deletions(-) diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index 4ed75df6..d94cffa3 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -9786,7 +9786,7 @@ strong { #article-container.post-content h2, #article-container.post-content h3, #article-container.post-content h4 { - display: flex; + /*display: flex;*/ align-items: center; justify-content: space-between; flex-direction: row-reverse; diff --git a/templates/category.html b/templates/category.html index 47a03c63..ac97d343 100644 --- a/templates/category.html +++ b/templates/category.html @@ -83,7 +83,7 @@
- + diff --git a/templates/modules/widgets/aside/toc.html b/templates/modules/widgets/aside/toc.html index 768278d0..727589ca 100644 --- a/templates/modules/widgets/aside/toc.html +++ b/templates/modules/widgets/aside/toc.html @@ -25,7 +25,7 @@ var headers = $(content).children(headerEl); // 没有 toc 目录,则直接移除 - if (headers.empty()) { + if (headers.length === 0) { document.getElementById("card-toc").remove(); } else { headers.each(function () { diff --git a/templates/post.html b/templates/post.html index 3d68ad56..ce2df899 100644 --- a/templates/post.html +++ b/templates/post.html @@ -15,9 +15,10 @@
-
diff --git a/templates/tag.html b/templates/tag.html index a9234f8f..fce1e297 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -70,7 +70,7 @@
- +