Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fastro/app/layout.ts

The Web Framework for Full Stack Apps
Go to Latest
File
import { RenderOptions } from "../http/server.ts";import { getPublishDate } from "./function.ts";
const html = ( props: unknown, title: string, description: string,): RenderOptions => { return { props, html: { class: "h-100", head: { title: `${title} | Fastro`, descriptions: description, meta: [ { charset: "utf-8" }, { name: "viewport", content: "width=device-width, initial-scale=1.0", }, { name: "description", content: description, }, { name: "author", content: "Fastro Software", }, { name: "publish_date", property: "og:publish_date", content: getPublishDate(), }, { property: "og:image", content: "https://fastro.dev/static/image.png", }, ], link: [{ href: "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css", rel: "stylesheet", integrity: "sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD", crossorigin: "anonymous", }, { href: "/static/cover.css", rel: "stylesheet", }], script: [], }, body: { class: "d-flex h-100 text-bg-dark", root: { class: "cover-container d-flex w-100 h-100 p-3 mx-auto flex-column", }, }, }, };};
export { html };