refactor(tags): centralize tag slug logic in client-safe util

This commit is contained in:
kbot
2026-07-06 20:15:54 -05:00
parent 7c8a4d8c52
commit ff58dd000c
5 changed files with 21 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
import { notFound } from 'next/navigation'
import Link from 'next/link'
import { getPosts, getPost, tagToSlug } from '@/lib/posts'
import { getPosts, getPost } from '@/lib/posts'
import { tagToSlug } from '@/lib/tags'
import { TableOfContents } from '@/components/posts/TableOfContents'
import { ScrollToTop } from '@/components/ui/ScrollToTop'
import { ReadingProgress } from '@/components/ui/ReadingProgress'