feat: add community curation article #3

Merged
naomi merged 2 commits from feat/pride into main 2025-06-26 12:47:56 -07:00
3 changed files with 88 additions and 2 deletions
Showing only changes of commit aac06f8e21 - Show all commits

View File

@ -5,11 +5,11 @@
*/
import Markdown from "react-markdown";
import rehypeRaw from "rehype-raw";
import remarkGfm from "remark-gfm";
import type { JSX } from "react";
import { Rule } from "@/components/rule";
import { getPostData } from "@/lib/posts";
import rehypeRaw from "rehype-raw";
/**
* Renders a blog post.
@ -29,7 +29,7 @@ const Page = async({
<h1>{post.data.title}</h1>
<p className="italic text-center">{`Published ${post.data.date.toLocaleDateString("en-GB", { day: "numeric", month: "long", weekday: "long", year: "numeric" })}`}</p>
<Rule />
<Markdown remarkPlugins={[ remarkGfm ]} rehypePlugins={[rehypeRaw]}>{post.content}</Markdown>
<Markdown rehypePlugins={[ rehypeRaw ]} remarkPlugins={[ remarkGfm ]}>{post.content}</Markdown>
<Rule />
<a href="/">{"← Back to home"}</a>
</main>