diff --git a/astro.config.ts b/astro.config.ts index 1cf6020..3409ce7 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -32,11 +32,11 @@ export default defineConfig({ rehypePlugins: [rehypeKatex, rehypeCleanup, rehypeImageProcessor, rehypeCopyCode] }, integrations: [ - mdx(), - sitemap(), playformInline({ - Path: ['./src/styles'] - }) + Exclude: [(file) => file.toLowerCase().includes('katex')] + }), + mdx(), + sitemap() ], vite: { resolve: { diff --git a/src/components/layout/TransitionWrapper.astro b/src/components/layout/TransitionWrapper.astro index 2360d63..be02c6f 100644 --- a/src/components/layout/TransitionWrapper.astro +++ b/src/components/layout/TransitionWrapper.astro @@ -52,7 +52,7 @@ const transitionName = type === 'post' ? 'post-content' : 'page-content' document.addEventListener('touchstart', cleanupHover, { passive: true }) -