This commit is contained in:
pj committed 2026-06-22 11:45:21 -04:00
1 parent bd44c0ba7e
commit 706db33792
65 files changed
+6844 -1

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
---
import "../styles/global.css";
import { site } from "../data/site";
interface Props {
title?: string;
description?: string;
}
const {
title = `${site.name} · ${site.tagline}`,
description = site.description,
} = Astro.props;
const canonical = new URL(Astro.url.pathname, site.domain).href;
const ogImage = new URL("/margin-logo.png", site.domain).href;
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="/margin-mark.png" />
<link rel="canonical" href={canonical} />
<title>{title}</title>
<meta name="description" content={description} />
<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 property="og:image" content={ogImage} />
<meta property="og:site_name" content={site.name} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={ogImage} />
<link rel="preload" href="/fonts/Literata-VF.ttf" as="font" type="font/ttf" crossorigin />
<link rel="preload" href="/fonts/HankenGrotesk-VF.ttf" as="font" type="font/ttf" crossorigin />
<script is:inline>
(function () {
try {
var t = localStorage.getItem("margin-theme");
if (t !== "light" && t !== "dark")
t = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
document.documentElement.setAttribute("data-theme", t);
} catch (e) {}
})();
</script>
</head>
<body>
<slot />
</body>
</html>