martials.no/src/layouts/Layout.astro

32 lines
832 B
Plaintext
Raw Normal View History

2024-09-08 13:14:02 +02:00
---
2024-09-25 22:20:47 +02:00
import Navbar from "../components/Navbar.astro"
2024-09-08 13:14:02 +02:00
interface Props {
2024-09-25 22:20:47 +02:00
title: string
class?: string
2024-09-08 13:14:02 +02:00
}
2024-09-25 22:20:47 +02:00
const { title, class: clazz } = Astro.props
2024-09-08 13:14:02 +02:00
2024-09-25 22:20:47 +02:00
import { languageTag } from "../paraglide/runtime"
import Footer from "../components/Footer.astro"
2024-09-08 13:14:02 +02:00
---
<!doctype html>
2024-09-25 22:20:47 +02:00
<html lang={languageTag()} dir={"ltr"}>
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body class="flex flex-col h-screen">
<Navbar />
<main class:list={["grow", clazz]}>
<slot />
</main>
<Footer />
</body>
2024-09-08 13:14:02 +02:00
</html>