pleshevski.ru/views/pages/content.ts
Dmitriy Pleshevskiy 491f0cded5
All checks were successful
continuous-integration/drone/push Build is passing
add title for each pages
Closes #7
2023-02-03 03:09:57 +03:00

12 lines
402 B
TypeScript

import { PageLayout } from "../comp/page_layout.ts";
import { AnyNode, E } from "ren/node.ts";
import { classNames } from "ren/attrs.ts";
import { Context } from "../../context.ts";
export function ContentPage(ctx: Context, content: AnyNode): AnyNode {
ctx.title = "About | Pleshevski";
return PageLayout(ctx, [
E("div", classNames("content-width responsive-typography"), [content]),
]);
}