Add the base Astro layout.
This commit is contained in:
parent
1f2dbac615
commit
5646387d88
|
@ -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>
|
Loading…
Reference in New Issue