astro-personal-website/src/layouts/RootLayout.astro
Mikkel Svartveit 0733f87517 Fix tab title
2023-10-17 23:42:50 -07:00

31 lines
869 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
import { ViewTransitions } from "astro:transitions";
interface Props {
title?: string;
hideScrollbar?: boolean;
}
const { title, hideScrollbar } = Astro.props;
const fullTitle = `${title ? title + " " : ""}Mikkel Svartveit`;
---
<!doctype html>
<html lang="en" transition:animate="fade">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width" />
<title>{fullTitle}</title>
<meta
name="description"
content="Hi, I'm Mikkel! I am a Computer Science student from Norway and this is my playground. Here you will find some programming projects, and a small collection of photos I'm proud of."
/>
<ViewTransitions fallback="swap" />
</head>
<body class={`bg-gray-50 ${hideScrollbar ? "" : "overflow-y-scroll"}`}>
<slot />
</body>
</html>