From 14f53a979a2c7ea6342e6d43faa5da249d88b1f4 Mon Sep 17 00:00:00 2001 From: radishzzz Date: Sun, 16 Feb 2025 01:58:01 +0000 Subject: [PATCH] fix: view transition error with title - Add `data-disable-transition-on-theme` to post titles and dates - Improve view transition handling for theme changes - Ensure consistent transition behavior across post list and individual post pages --- src/pages/index.astro | 2 ++ src/pages/posts/[slug].astro | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index d0148d1..d4f5ecf 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -41,6 +41,7 @@ const postsByYear = await getPostsByYear() class="hover:c-primary" href={`/posts/${post.data.slug || post.slug}`} transition:name={`post-${post.data.slug || post.slug}`} + data-disable-transition-on-theme > {post.data.title} @@ -48,6 +49,7 @@ const postsByYear = await getPostsByYear()