src/layouts/Layout.astro (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
--- import Footer from '@/components/Footer.astro' import Head from '@/components/Head.astro' import Header from '@/components/Header.astro' import { SITE } from '@/consts' type Props = { title: string description: string image?: string } const { title, description, image } = Astro.props --- <!doctype html> <html lang="en"> <head> <Head title={`${title} | ${SITE.TITLE}`} description={description} image={image} /> </head> <body> <div class="box-border flex h-fit min-h-screen flex-col gap-y-6 font-sans antialiased" > <Header /> <main class="flex-grow"> <slot /> </main> <Footer /> </div> </body> </html> |