1
Fork 0

Add the base Astro layout.

This commit is contained in:
Bauke 2023-09-25 18:11:59 +02:00
parent 1f2dbac615
commit 5646387d88
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 28 additions and 0 deletions

28
source/layouts/base.astro Normal file
View File

@ -0,0 +1,28 @@
---
import "../scss/common.scss";
interface Props {
frontmatter: {
favicon?: string;
pageTitle: string;
};
}
const {frontmatter} = Astro.props;
const favicon = "/" + (frontmatter.favicon ?? "tildes-community.png");
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{frontmatter.pageTitle}</title>
<link rel="shortcut icon" href={favicon} type="image/png" />
</head>
<body>
<slot />
</body>
</html>