feat: 开启全站无缝路由平滑过渡效果

This commit is contained in:
kennethcheng 2026-04-27 15:14:06 +08:00
parent fdafeb736f
commit 9d1ee8e159

View File

@ -2,6 +2,8 @@
import '../styles/global.css';
import Sidebar from '../components/Sidebar.astro';
import CodeBlockHelper from '../components/CodeBlockHelper.astro';
import { ClientRouter } from 'astro:transitions';
const { title } = Astro.props;
---
<html lang="zh-CN">
@ -9,6 +11,7 @@ const { title } = Astro.props;
<meta charset="utf-8" />
<title>{title}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.21/dist/katex.min.css">
<ClientRouter />
</head>
<body class="bg-white dark:bg-[#0a0c10] text-gray-900 min-h-screen selection:bg-blue-200 dark:selection:bg-blue-900">
<div class="flex max-w-[1440px] mx-auto">