summaryrefslogtreecommitdiffhomepage
path: root/services/blog/nuldoc-src/pages/PostPage.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-04 19:15:15 +0900
committernsfisis <nsfisis@gmail.com>2025-07-04 19:15:15 +0900
commit4b29e31a34357d4f4953fd0d277724852bf4418c (patch)
tree6d9c3e47fe988f211e8598cbedd2031c09ca54cb /services/blog/nuldoc-src/pages/PostPage.tsx
parent98db243a59fb6a409b3677f2195e96da6fd39564 (diff)
parent80f0ab31aceec35c9fd04a6387b14349b806f713 (diff)
downloadnsfisis.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.tsx4
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>