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/Base.astro | |
| parent | 33a4eb02a8307be1bcfaaabbe3adaf25d0088d3b (diff) | |
refactor; use plain css
Diffstat (limited to 'src/layouts/Base.astro')
| -rw-r--r-- | src/layouts/Base.astro | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro new file mode 100644 index 0000000..6ec66c5 --- /dev/null +++ b/src/layouts/Base.astro @@ -0,0 +1,37 @@ +--- +import "@fontsource-variable/noto-sans"; +import "@fontsource/noto-sans-mono"; + +import NavBar from "@components/NavBar.astro"; +import "@styles/main.css"; + +const { title, description } = Astro.props.frontmatter || Astro.props; +--- + +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <title>{title}</title> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="description" content={description} /> + <link rel="sitemap" href="/sitemap-index.xml" /> + </head> + + <body> + <h1><b>getchoo's website 🚀</b></h1> + <slot name="nav"> + <nav> + <slot name="extra_nav" /> + <NavBar /> + </nav> + </slot> + <slot /> + <slot name="footer"> + <footer> + <slot name="extra_footer" /> + <a href="https://github.com/getchoo/website">source code</a> + </footer> + </slot> + </body> +</html> |
