From 8f9d96b60fe18e0b126022096505c1c693b51108 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 21 Dec 2024 19:18:40 -0800 Subject: feat: add ability to dynamically render markdown files in public dir --- src/layouts/Layout.astro | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/layouts/Layout.astro') diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 8ebd2f2..343c12b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,9 +1,14 @@ --- interface Props { title: string; + textColor?: string; } -const { title } = Astro.props; +const { + title, + textColor = "var(--zinc-950)", + background = "#fff4e6", +} = Astro.props; --- @@ -40,7 +45,7 @@ const { title } = Astro.props; {title} - + @@ -70,7 +75,6 @@ const { title } = Astro.props; } body { - background: #fff4e6; padding: 20px; } -- cgit v1.2.3