From 54c281ea597559a4cabce07ab723af0cb381dacf Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 1 Apr 2025 11:33:45 +0800 Subject: feat: better post archive page Former-commit-id: bac5a7b1efbd3730bf88061929bdc17b0c3d6471 --- assets/css/components/_postlist.scss | 20 +++++++++------- layouts/_default/section.html | 46 ++++++++++++++++-------------------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/assets/css/components/_postlist.scss b/assets/css/components/_postlist.scss index 6b7b13d8..f2f5c212 100644 --- a/assets/css/components/_postlist.scss +++ b/assets/css/components/_postlist.scss @@ -23,14 +23,6 @@ .posts-item-category { margin: 0.5rem 0; - a { - border: 2px solid var(--border-color); - border-radius: 0.2rem; - padding: 0.2rem 0.5rem; - text-decoration: none; - font-size: 0.8rem; - display: inline-block; - } } } .posts-item-summary { @@ -102,7 +94,19 @@ time { font-size: 0.9rem; font-family: var(--mono-font-family); + color: var(--secondary-text-color); } } } } + +.posts-item-category { + a { + border: 2px solid var(--border-color); + border-radius: 0.2rem; + padding: 0.2rem 0.5rem; + text-decoration: none; + font-size: 0.8rem; + display: inline-block; + } +} diff --git a/layouts/_default/section.html b/layouts/_default/section.html index d18246ad..9a0b6dcd 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -19,35 +19,29 @@ {{ T "archivePage.postCountMonthly" (len .Pages) }} - + + {{ end }} + + {{ end }} -- cgit v1.2.3