diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-03-18 19:58:38 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-03-18 19:58:38 +0900 |
| commit | 7688362ad3b57b0cdd6f048d1e595f69748fc183 (patch) | |
| tree | 5524182d1cc29f55b9b60ce7799497d4d8141929 /nuldoc-src/commands | |
| parent | 7f15e0b8277ac8b101b4f71ce57c1c5442927141 (diff) | |
| download | blog.nsfisis.dev-7688362ad3b57b0cdd6f048d1e595f69748fc183.tar.gz blog.nsfisis.dev-7688362ad3b57b0cdd6f048d1e595f69748fc183.tar.zst blog.nsfisis.dev-7688362ad3b57b0cdd6f048d1e595f69748fc183.zip | |
feat(content): add / page
Diffstat (limited to 'nuldoc-src/commands')
| -rw-r--r-- | nuldoc-src/commands/build.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuldoc-src/commands/build.ts b/nuldoc-src/commands/build.ts index 911ff50..fad5c75 100644 --- a/nuldoc-src/commands/build.ts +++ b/nuldoc-src/commands/build.ts @@ -6,6 +6,7 @@ import { parseDocBookFile } from "../docbook/parse.ts"; import { Page } from "../page.ts"; import { render } from "../render.ts"; import { generateAboutPage } from "../pages/about.ts"; +import { generateHomePage } from "../pages/home.ts"; import { generateNotFoundPage } from "../pages/not_found.ts"; import { generatePostPage, @@ -21,6 +22,7 @@ export async function runBuildCommand(config: Config) { await buildPostListPage(posts, config); const tags = await buildTagPages(posts, config); await buildTagListPage(tags, config); + await buildHomePage(config); await buildAboutPage(config); await buildNotFoundPage(config); await copyStaticFiles(config); @@ -63,6 +65,11 @@ async function buildPostListPage(posts: PostPage[], config: Config) { await writePage(postListPage, config); } +async function buildHomePage(config: Config) { + const homePage = await generateHomePage(config); + await writePage(homePage, config); +} + async function buildAboutPage(config: Config) { const aboutPage = await generateAboutPage(config); await writePage(aboutPage, config); |
