Skip to content

Commit 22c4123

Browse files
committed
style: 인라인 목차 컴포넌트 추가
1 parent 9dee9ab commit 22c4123

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/app/posts/[...slug]/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ export default async function PostDetailPage({ params }: PageProps) {
147147
{/* 구분선 */}
148148
<div className="mb-10 h-px bg-black/8 dark:bg-white/8" />
149149

150+
{/* 인라인 목차 (xl 미만) */}
151+
{headings.length >= 2 && <CollapsibleTOC headings={headings} />}
152+
150153
{/* 본문 */}
151154
<Suspense fallback={
152155
<article className="prose max-w-none" dangerouslySetInnerHTML={{ __html: html }} />

0 commit comments

Comments
 (0)