pleshevski.ru/views/pages/content.ts

13 lines
402 B
TypeScript
Raw Normal View History

2022-06-14 00:30:15 +03:00
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 {
2023-02-03 03:09:57 +03:00
ctx.title = "About | Pleshevski";
2022-06-14 00:30:15 +03:00
return PageLayout(ctx, [
E("div", classNames("content-width responsive-typography"), [content]),
]);
}