From 22b68a6d79f322015f8b614cebc4d39f5ab41f25 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 12 Dec 2024 22:58:25 +0800 Subject: fix(theme): css scope creep in posts list items --- themes/yinyang/assets/css/index.css | 2 +- themes/yinyang/layouts/index.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/yinyang/assets/css/index.css b/themes/yinyang/assets/css/index.css index 34687048..fb9bdca9 100644 --- a/themes/yinyang/assets/css/index.css +++ b/themes/yinyang/assets/css/index.css @@ -200,7 +200,7 @@ a:hover { padding-inline-start: 1em; } -.featured-post .posts-title a { +.featured-post a.posts-title-link { font-weight: 800; display: block; } diff --git a/themes/yinyang/layouts/index.html b/themes/yinyang/layouts/index.html index c59f3abd..c8bd5617 100644 --- a/themes/yinyang/layouts/index.html +++ b/themes/yinyang/layouts/index.html @@ -3,9 +3,9 @@ {{ partial "header.html" . }}
{{ $currentYear := now.Format "2006" }} - + {{ $isFirstPost := true }} - + {{ range (where site.RegularPages "Type" "in" site.Params.mainSections).GroupByDate "2006" -}}

{{ .Key }}

@@ -23,7 +23,7 @@
- {{ .Title }} + {{ .Title }}
{{ if $isFirstPost }} {{ if .Params.description }} -- cgit v1.2.3