From fab7017238d7da7f3f10267d601bf959c0755bb4 Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Wed, 13 Aug 2025 23:54:53 +0100 Subject: [PATCH] Add markdown layout component --- src/components/Markdown.astro | 70 +++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/components/Markdown.astro diff --git a/src/components/Markdown.astro b/src/components/Markdown.astro new file mode 100644 index 0000000..6d8cd4c --- /dev/null +++ b/src/components/Markdown.astro @@ -0,0 +1,70 @@ +--- +import Base from "./Base.astro"; + +import Box2x1Mask from "/assets/box-2x1-mask.png"; +import Hr from "/assets/hr.png"; + +import "/components/markdown.css"; + +interface Props { + frontmatter: { + title: string; + graph?: { + description: string; + type?: "website" | "article" | `${"music" | "video"}.${string}`; + image?: string; + }; + }; +} + +const { frontmatter } = Astro.props; +--- + + +
+ {frontmatter.graph?.image && } +

{frontmatter.title}

+
+ +
+ +
+ +
+ + + -- 2.51.2