blob: 6663a190e4e4dc7fd6b63a5d0d7aea08a388428c (
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 AboutPage from "../pages/AboutPage.tsx";
import { Config } from "../config.ts";
import { renderToDOM } from "../jsx/render.ts";
import { Page } from "../page.ts";
import { SlidePage } from "./slide.ts";
export type AboutPage = Page;
export async function generateAboutPage(
slides: SlidePage[],
config: Config,
): Promise<AboutPage> {
const html = await renderToDOM(
AboutPage(slides, config),
);
return {
root: html,
renderer: "html",
destFilePath: "/about/index.html",
href: "/about/",
};
}
|