1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 20:15:31 -04:00

fix: view transitions

This commit is contained in:
2026-01-28 11:18:56 -05:00
parent b80768cab6
commit 928ec66cf6
5 changed files with 40 additions and 32 deletions
+4 -1
View File
@@ -147,7 +147,10 @@ const Page = async ({ params }: { params: Promise<{ slug: string }> }) => {
</div>
</div>
<h1 className="my-5 text-4xl font-semibold tracking-tight sm:text-3xl">
<h1
className="my-5 text-3xl font-semibold tracking-tight"
style={{ viewTransitionName: `note-title-${frontmatter!.slug}` }}
>
<Link
href={`/${POSTS_DIR}/${frontmatter!.slug}`}
dangerouslySetInnerHTML={{ __html: frontmatter!.htmlTitle || frontmatter!.title }}