From ec2ae41b815c4c465a856d800709de6147e5e54f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 17 Mar 2023 02:27:53 +0900 Subject: refactor: make Document type class --- nuldoc-src/templates/about.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'nuldoc-src/templates/about.ts') diff --git a/nuldoc-src/templates/about.ts b/nuldoc-src/templates/about.ts index c41418c..ccd7b1a 100644 --- a/nuldoc-src/templates/about.ts +++ b/nuldoc-src/templates/about.ts @@ -110,14 +110,13 @@ export default async function generateAbout( head, body, ); - const doc = { - root: el("__root__", [], html), - sourceFilePath: "", - link: "/about/", - title: "About", - summary: "このサイトの著者について", - tags: [], - revisions: [], - }; - return doc; + return new Document( + el("__root__", [], html), + "", + "/about/", + "About", + "このサイトの著者について", + [], + [], + ); } -- cgit v1.2.3-70-g09d2