blob: 56adc8e9c01235fe278ad1cf544705af17463c77 (
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(site, config),
);
return {
root: html,
renderer: "html",
site,
destFilePath: "/404.html",
href: "/404.html",
};
}
|