From 0ceefc04c78b60b94adb0bad2138f6c5329c21e3 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Fri, 1 May 2026 17:40:56 +0800 Subject: [PATCH] fix invalid nesting in PostList Apply the same PostList structural fix as hype404 / viralmvp: drop the card-wide that broke the layout via HTML5 nested-link auto-recovery. Layout CSS unchanged; this commit only updates PostList.astro. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/PostList.astro | 66 +++++++++++++++++------------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/components/PostList.astro b/src/components/PostList.astro index 70d82a3..6a32657 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -26,46 +26,46 @@ const fmt = (d) => new Date(d).toLocaleDateString('en-US', {enriched.length > 0 && !tag && hero && (
- - {hero.cover && ( -
- -
- )} -
-
Top story
-

{hero.title}

-

{hero.rawExcerpt}

-
- {fmt(hero.date)} - {hero.tags.slice(0, 4).map((t) => ( - {t} - ))} -
+ {hero.cover && ( +
+
- + )} +
+
Top story
+

+ {hero.title} +

+

{hero.rawExcerpt}

+
+ {fmt(hero.date)} + {hero.tags.slice(0, 4).map((t) => ( + {t} + ))} +
+
)} {(tag ? enriched : rest).map((post, i) => (
- - {post.cover && ( -
- -
- )} -
-

{post.title}

-

{post.rawExcerpt}

-
- - {post.tags.slice(0, 3).map((t) => ( - {t} - ))} -
+ {post.cover && ( +
+
- + )} +
+

+ {post.title} +

+

{post.rawExcerpt}

+
+ + {post.tags.slice(0, 3).map((t) => ( + {t} + ))} +
+
))}