From 6daffab512a96be0674bf5129ac7032506f62f8a Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Mon, 4 Mar 2024 14:51:17 +0800 Subject: [PATCH 1/6] updt:

rendering --- assets/css/main.css | 10 +++++++--- layouts/_default/_markup/render-heading.html | 9 +++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index e324079..fb5126f 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -79,6 +79,11 @@ h1 { h2 { font-size: 1.2em; + margin-top: 3em; +} + +h2:first-of-type { + margin-top: 0; } h3 { @@ -415,9 +420,8 @@ article header h1 a { .post h4 a, .post h5 a, .post h6 a { - opacity: 0; - position: absolute; - left: -1.2rem; + opacity: 1; + border-bottom: none; } .post h1:hover a, diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index d1af727..7c7f3ec 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,7 +1,8 @@ -{{ .Text | safeHTML }} - + +
- + {{ range seq 2 .Level}}#{{end}} - + {{ .Text | safeHTML }} +
\ No newline at end of file From ababd036b8f2bd3a3349aa0270b8e431df852003 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Mon, 4 Mar 2024 14:53:05 +0800 Subject: [PATCH 2/6] update the margin of "To all ..." --- assets/css/main.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/css/main.css b/assets/css/main.css index fb5126f..5f04028 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -237,6 +237,7 @@ header h2 { .site-title { display: inline; white-space: nowrap; + font-weight: 700; } header nav:not(:empty){ @@ -489,6 +490,7 @@ article header h1 a { color: var(--post-info-color); font-size: 0.75em; margin-top: 1em; + margin-bottom: 1em; } .post-info a { From 90703b270fdfe451aecf9b2d897418e25d0481d6 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Mon, 4 Mar 2024 14:53:47 +0800 Subject: [PATCH 3/6] remove links of the