blob: 8a5593c3b8e4c6410a8e487b61c61b31a5485240 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import NotFoundPage from "../pages/NotFoundPage.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 NotFoundPage(site, config);
return {
root: html,
renderer: "html",
site,
destFilePath: "/404.html",
href: "/404.html",
};
}
|