diff options
| author | seth <[email protected]> | 2024-04-08 22:58:22 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-08 22:58:22 -0400 |
| commit | d8a20e3032a0ce97b6ddc29840e135eda9b3f43c (patch) | |
| tree | 40a4059020ff4c9d500d4022f5b84e7bf2c46fd4 /src/layouts/Page.astro | |
| parent | 33a4eb02a8307be1bcfaaabbe3adaf25d0088d3b (diff) | |
refactor; use plain css
Diffstat (limited to 'src/layouts/Page.astro')
| -rw-r--r-- | src/layouts/Page.astro | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index d8e216b..72512e2 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -1,20 +1,8 @@ --- -import Footer from "@components/Footer.astro"; -import Head from "@components/Head.astro"; -import Nav from "@components/Nav.astro"; - -const { frontmatter } = Astro.props; +import Base from "@layouts/Base.astro"; +const { title, description } = Astro.props.frontmatter || Astro.props; --- -<!doctype html> -<html lang="en"> - <Head title={frontmatter.title} description={frontmatter.description} /> - <body - class="bg-base text-text p-5 lg:p-0 text-md md:text-lg antialiased max-w-screen-md mx-auto my-10" - > - <h1><b>getchoo's website 🚀</b></h1> - <Nav /> - <slot /> - <Footer /> - </body> -</html> +<Base title={title} description={description}> + <slot /> +</Base> |
