46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
---
|
|
import '@fontsource-variable/space-grotesk';
|
|
import '@fontsource-variable/jetbrains-mono';
|
|
import '../styles/global.css';
|
|
import Nav from '../components/Nav.astro';
|
|
import { site } from '../data/site';
|
|
|
|
interface Props {
|
|
title?: string;
|
|
description?: string;
|
|
}
|
|
const { title = site.title, description = site.description } = Astro.props;
|
|
const canonical = new URL(Astro.url.pathname, Astro.site);
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{title}</title>
|
|
<meta name="description" content={description} />
|
|
<meta name="theme-color" content="#0A0F0D" />
|
|
<link rel="canonical" href={canonical} />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content={title} />
|
|
<meta property="og:description" content={description} />
|
|
<meta property="og:url" content={canonical} />
|
|
<meta name="twitter:card" content="summary" />
|
|
</head>
|
|
<body>
|
|
<a class="skip" href="#main">Skip to content</a>
|
|
<div class="wrap">
|
|
<Nav />
|
|
<main id="main">
|
|
<slot />
|
|
</main>
|
|
<footer class="foot">
|
|
© {new Date().getFullYear()} Dylan Benzi · Built with Astro, self-hosted
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|