barrettruth.com/src/layouts/BaseLayout.astro
2025-05-22 16:12:05 -05:00

40 lines
945 B
Text

---
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
interface Props {
title: string;
description?: string;
useKatex?: boolean;
bodyClass?: string;
}
const {
title,
description = "Barrett Ruth's personal website",
useKatex = false,
bodyClass = "graph-background",
} = Astro.props;
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content={description} />
<link rel="icon" type="image/webp" href="/logo.webp" />
<link rel="stylesheet" href="/styles/common.css" />
<title>{title}</title>
<slot name="head" />
</head>
<body class={bodyClass}>
<Header />
<main class="main">
<slot />
</main>
<Footer />
<slot name="scripts" />
</body>
</html>