began rewrite
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
---
|
||||
let { title } = Astro.props;
|
||||
import "../styles/global.scss"
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<slot />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
27
src/layouts/Layout.astro
Normal file
27
src/layouts/Layout.astro
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
const { description } = Astro.props;
|
||||
import "../styles/main.scss";
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content={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>vaporvee's Website | {title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<slot />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user