aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/templates/about.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-17 02:27:53 +0900
committernsfisis <nsfisis@gmail.com>2023-03-17 02:27:53 +0900
commitec2ae41b815c4c465a856d800709de6147e5e54f (patch)
treeab05d0e2971cdbcfa55e531e6d977cc552c7adf5 /nuldoc-src/templates/about.ts
parent29bcdc6c1bad2240d404de9dca2463e46fdc1e93 (diff)
downloadblog.nsfisis.dev-ec2ae41b815c4c465a856d800709de6147e5e54f.tar.gz
blog.nsfisis.dev-ec2ae41b815c4c465a856d800709de6147e5e54f.tar.zst
blog.nsfisis.dev-ec2ae41b815c4c465a856d800709de6147e5e54f.zip
refactor: make Document type class
Diffstat (limited to 'nuldoc-src/templates/about.ts')
-rw-r--r--nuldoc-src/templates/about.ts19
1 files changed, 9 insertions, 10 deletions
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: "<about>",
- link: "/about/",
- title: "About",
- summary: "このサイトの著者について",
- tags: [],
- revisions: [],
- };
- return doc;
+ return new Document(
+ el("__root__", [], html),
+ "<about>",
+ "/about/",
+ "About",
+ "このサイトの著者について",
+ [],
+ [],
+ );
}