mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
🚀 refactor: toc component with responsive design
- Implement scroll-sync highlight tracking - Add auto-scroll functionality for active items - Remove animations during view transitions
This commit is contained in:
parent
4c8dff619e
commit
7c6172e0ae
5 changed files with 449 additions and 309 deletions
|
@ -6,6 +6,7 @@ import robotsTxt from 'astro-robots-txt'
|
|||
import { defineConfig } from 'astro/config'
|
||||
import rehypeExternalLinks from 'rehype-external-links'
|
||||
import rehypeKatex from 'rehype-katex'
|
||||
import rehypeSlug from 'rehype-slug'
|
||||
import remarkMath from 'remark-math'
|
||||
import UnoCSS from 'unocss/astro'
|
||||
import { themeConfig } from './src/config'
|
||||
|
@ -56,6 +57,7 @@ export default defineConfig({
|
|||
remarkReadingTime,
|
||||
],
|
||||
rehypePlugins: [
|
||||
rehypeSlug,
|
||||
rehypeKatex,
|
||||
[
|
||||
rehypeExternalLinks,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue