This commit is contained in:
2026-02-13 13:41:18 +01:00
parent d241feb0e9
commit af9ed8d9df
13 changed files with 2022 additions and 190 deletions

View File

@@ -1,4 +1,4 @@
import { getParams, htmlToResponse, readDir } from "@mastrojs/mastro";
import { getParams, html, htmlToResponse, readDir } from "@mastrojs/mastro";
import { readMarkdownFile } from "@mastrojs/markdown";
import { Layout } from "../../../components/Layout.ts";
@@ -8,7 +8,9 @@ export const GET = async (req: Request) => {
return htmlToResponse(
Layout({
title: post.meta.title,
children: post.content,
children: html`<article class="prose prose-stone prose-invert">
${post.content}
</article>`,
}),
);
};