Added a weird little chat for shits and giggles

This commit is contained in:
2025-04-26 01:34:49 -06:00
parent a6a17e8969
commit 871000c333
9 changed files with 297 additions and 44 deletions

View File

@ -1,5 +1,4 @@
import { CSS, render } from "@deno/gfm";
import { Head } from "$fresh/runtime.ts";
import { render } from "@deno/gfm";
import { Handlers, PageProps } from "$fresh/server.ts";
import { getPost, Post } from "../../lib/posts.ts";
@ -21,9 +20,6 @@ export default function PostPage(props: PageProps<Post>) {
const post = props.data;
return (
<>
<Head>
<style dangerouslySetInnerHTML={{ __html: CSS }} />
</Head>
<div class="min-h-screen p-4 md:p-8">
<div class="max-w-3xl mx-auto">
<div class="p-4 md:p-8">
@ -73,6 +69,7 @@ export default function PostPage(props: PageProps<Post>) {
class="max-w-none prose"
data-color-mode="dark"
data-dark-theme="dark"
// deno-lint-ignore react-no-danger
dangerouslySetInnerHTML={{ __html: render(post.content) }}
/>
</div>