blob: 679dd39aa295d0136200a2015d6e6b8595f736ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import HomePage from "../pages/HomePage.tsx";
import { renderToDOM } from "../jsx/render.ts";
import { Config } from "../config.ts";
import { Page } from "../page.ts";
export type HomePage = Page;
export async function generateHomePage(config: Config): Promise<HomePage> {
const html = await renderToDOM(
HomePage(config),
);
return {
root: html,
renderer: "html",
destFilePath: "/index.html",
href: "/",
};
}
|