Changes
3 changed files (+2/-54)
-
-
@@ -22,7 +22,7 @@ import { footer, footerStyles } from "../widgets/footer.tsx";import { pageMetadata, pageMetadataScript } from "../widgets/page_metadata.tsx"; import { jsonCanvas, jsonCanvasStyles } from "../json_canvas/mod.tsx"; import { embedTemplate, template } from "./template.tsx"; import { template } from "./template.tsx"; const c = buildClasses("p-jc", [ "meta",
-
@@ -107,13 +107,3 @@ }),}), ]); } export function jsonCanvasEmbed({ context, content }: JsonCanvasPageProps) { return h(null, [ { type: "doctype" }, embedTemplate({ context, body: jsonCanvas({ data: content }), }), ]); }
-
-
-
@@ -22,7 +22,7 @@ import { footer, footerStyles } from "../widgets/footer.tsx";import { title, titleStyles } from "../widgets/title.tsx"; import { pageMetadata, pageMetadataScript } from "../widgets/page_metadata.tsx"; import { embedTemplate, template } from "./template.tsx"; import { template } from "./template.tsx"; const c = buildClasses("p-md", [ "main",
-
@@ -114,19 +114,3 @@ }),}), ]); } export interface MarkdownEmbedProps { context: Readonly<BuildContext>; content: Hast.Nodes; } export function markdownEmbed({ context, content }: MarkdownEmbedProps) { return h(null, [ { type: "doctype" }, embedTemplate({ context, body: content, }), ]); }
-
-
-
@@ -53,29 +53,3 @@ )}</html> ); } export function embedTemplate({ body, context, scripts = [] }: TemplateProps) { const { language, document, assets, resolvePath } = context; return ( <html lang={language}> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="robot" content="noindex" /> <title>{document.metadata.title}</title> <link rel="stylesheet" href={resolvePath(assets.globalCss).join("/")} /> <style>{"body{background-color: transparent}"}</style> </head> {h( "body", {}, body, ...scripts.map((script) => <script>{script}</script>), )} </html> ); }
-