first commit
This commit is contained in:
33
src/layouts/BaseLayout.astro
Normal file
33
src/layouts/BaseLayout.astro
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
import { Font } from 'astro:assets'
|
||||
|
||||
import '@/styles/global.css'
|
||||
|
||||
interface Props {
|
||||
title: string
|
||||
description?: string
|
||||
}
|
||||
|
||||
const { title, description } = Astro.props
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
|
||||
<title>{title}</title>
|
||||
{description && <meta name="description" content={description} />}
|
||||
|
||||
<Font cssVariable="--font-geist" preload />
|
||||
<Font cssVariable="--font-geist-mono" preload />
|
||||
<Font cssVariable="--font-blaka" preload />
|
||||
<Font cssVariable="--font-julia-mono" preload />
|
||||
<Font cssVariable="--font-unigrim" />
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user