diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-04 19:15:15 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-04 19:15:15 +0900 |
| commit | 4b29e31a34357d4f4953fd0d277724852bf4418c (patch) | |
| tree | 6d9c3e47fe988f211e8598cbedd2031c09ca54cb /services/blog/nuldoc-src/pages/PostPage.tsx | |
| parent | 98db243a59fb6a409b3677f2195e96da6fd39564 (diff) | |
| parent | 80f0ab31aceec35c9fd04a6387b14349b806f713 (diff) | |
| download | nsfisis.dev-4b29e31a34357d4f4953fd0d277724852bf4418c.tar.gz nsfisis.dev-4b29e31a34357d4f4953fd0d277724852bf4418c.tar.zst nsfisis.dev-4b29e31a34357d4f4953fd0d277724852bf4418c.zip | |
Merge branch 'blog/toc'
Diffstat (limited to 'services/blog/nuldoc-src/pages/PostPage.tsx')
| -rw-r--r-- | services/blog/nuldoc-src/pages/PostPage.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/blog/nuldoc-src/pages/PostPage.tsx b/services/blog/nuldoc-src/pages/PostPage.tsx index 97a24048..e625518c 100644 --- a/services/blog/nuldoc-src/pages/PostPage.tsx +++ b/services/blog/nuldoc-src/pages/PostPage.tsx @@ -1,6 +1,7 @@ import GlobalFooter from "../components/GlobalFooter.tsx"; import GlobalHeader from "../components/GlobalHeader.tsx"; import PageLayout from "../components/PageLayout.tsx"; +import TableOfContents from "../components/TableOfContents.tsx"; import { Config, getTagLabel } from "../config.ts"; import { Element } from "../dom.ts"; import { Document } from "../djot/document.ts"; @@ -36,6 +37,9 @@ export default function PostPage( </ul> )} </header> + {doc.toc && doc.toc.entries.length > 0 && ( + <TableOfContents toc={doc.toc} /> + )} <div className="post-content"> <section id="changelog"> <h2> |
