Idk, tryin' to make i18n compatible. Doesn't rly work.
This commit is contained in:
@ -1,31 +0,0 @@
|
||||
---
|
||||
import Navigation from '../components/Navigation.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
import Hamburger from '../components/Hamburger.astro';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
lang: string;
|
||||
}
|
||||
|
||||
const { title, lang } = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang={lang}>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Astro description" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<Hamburger />
|
||||
<Navigation />
|
||||
<slot />
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
|
15
src/layouts/MainLayout.astro
Normal file
15
src/layouts/MainLayout.astro
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
const { title, description, lang } = Astro.props;
|
||||
---
|
||||
<!DOCTYPE html>
|
||||
<html lang={lang}>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content={description}>
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<slot/>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user