diff options
Diffstat (limited to 'services/blog/nuldoc-src/generators/not_found.ts')
| -rw-r--r-- | services/blog/nuldoc-src/generators/not_found.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/services/blog/nuldoc-src/generators/not_found.ts b/services/blog/nuldoc-src/generators/not_found.ts new file mode 100644 index 00000000..f5a81c86 --- /dev/null +++ b/services/blog/nuldoc-src/generators/not_found.ts @@ -0,0 +1,21 @@ +import NotFoundPage from "../pages/NotFoundPage.tsx"; +import { renderToDOM } from "../jsx/render.ts"; +import { Config } from "../config.ts"; +import { Page } from "../page.ts"; + +export type NotFoundPage = Page; + +export async function generateNotFoundPage( + config: Config, +): Promise<NotFoundPage> { + const html = await renderToDOM( + NotFoundPage(config), + ); + + return { + root: html, + renderer: "html", + destFilePath: "/404.html", + href: "/404.html", + }; +} |
