blob: 81fdb35aaa0265b218cb3809ef0a98ed4bd7d54f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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(
site: "default" | "about" | "blog" | "slides",
config: Config,
): Promise<NotFoundPage> {
const html = await renderToDOM(
NotFoundPage(config),
);
return {
root: html,
renderer: "html",
site,
destFilePath: "/404.html",
href: "/404.html",
};
}
|