diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-12-21 19:18:40 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-12-21 19:18:40 -0800 |
| commit | 8f9d96b60fe18e0b126022096505c1c693b51108 (patch) | |
| tree | 0fe14c9d0be93a780b5bc3da9b4ea60972fcab42 /src/layouts/Layout.astro | |
| parent | e19f06c1caf2ba57bbed09a212bb49ba97a815dd (diff) | |
feat: add ability to dynamically render markdown files in public dir
Diffstat (limited to 'src/layouts/Layout.astro')
| -rw-r--r-- | src/layouts/Layout.astro | 10 |
1 files changed, 7 insertions, 3 deletions
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; --- <!doctype html> @@ -40,7 +45,7 @@ const { title } = Astro.props; <meta name="generator" content={Astro.generator} /> <title>{title}</title> </head> - <body> + <body style={`color: ${textColor}; background: ${background};`}> <slot /> </body> </html> @@ -70,7 +75,6 @@ const { title } = Astro.props; } body { - background: #fff4e6; padding: 20px; } |
