diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 10:56:21 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 10:56:21 +0300 |
| commit | 456cf011b36de91c9936994b1fa45703adcd309b (patch) | |
| tree | 8e60daf998f731ac50d100fa490eaecae1168042 /src/layouts/Base.astro | |
Initial fork of chrismwilliams/astro-theme-cactus theme
Diffstat (limited to 'src/layouts/Base.astro')
| -rw-r--r-- | src/layouts/Base.astro | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro new file mode 100644 index 0000000..09d7727 --- /dev/null +++ b/src/layouts/Base.astro @@ -0,0 +1,34 @@ +--- +import BaseHead from "@/components/BaseHead.astro"; +import SkipLink from "@/components/SkipLink.astro"; +import ThemeProvider from "@/components/ThemeProvider.astro"; +import Footer from "@/components/layout/Footer.astro"; +import Header from "@/components/layout/Header.astro"; +import { siteConfig } from "@/site.config"; +import type { SiteMeta } from "@/types"; + +interface Props { + meta: SiteMeta; +} + +const { + meta: { articleDate, description = siteConfig.description, ogImage, title }, +} = Astro.props; +--- + +<html class="scroll-smooth" lang={siteConfig.lang}> + <head> + <BaseHead articleDate={articleDate} description={description} ogImage={ogImage} title={title} /> + </head> + <body + class="bg-global-bg text-global-text mx-auto flex min-h-screen max-w-3xl flex-col px-4 pt-16 font-mono text-sm font-normal antialiased sm:px-8" + > + <ThemeProvider /> + <SkipLink /> + <Header /> + <main id="main"> + <slot /> + </main> + <Footer /> + </body> +</html> |
