stuff
This commit is contained in:
@@ -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>`,
|
||||
}),
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user