From 51d8dca83c28ec8d56e13f04bbc9af35b705d14f Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 8 Sep 2022 00:47:08 +0800 Subject: [PATCH] enhance inline links --- assets/css/common/main.css | 11 +++++++++++ layouts/_default/list.html | 11 +++++++---- layouts/newsletter/section.html | 10 +++++----- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/assets/css/common/main.css b/assets/css/common/main.css index 68208dd..785546c 100644 --- a/assets/css/common/main.css +++ b/assets/css/common/main.css @@ -79,6 +79,17 @@ mark { font-size: 14px; } +.inline-links a { + font-weight: 500; + color: var(--primary); + box-shadow: var(--link-underline-shadow); + transition: var(--link-transition); +} +.inline-links a:hover { + color: var(--link-hover-color); + box-shadow: var(--link-hover-underline-shadow); +} + /* for post page */ .main.post { diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 67e1897..654297b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -13,11 +13,14 @@ {{ .Description | markdownify }} {{- end }} - {{- with .Param "archivesSlug" }} -
- Archives + - {{- end }} {{- end }} diff --git a/layouts/newsletter/section.html b/layouts/newsletter/section.html index a52e40f..11d52ab 100644 --- a/layouts/newsletter/section.html +++ b/layouts/newsletter/section.html @@ -35,13 +35,13 @@

相关链接

-
+