1
Fork 0
holllo-org/source/layouts/base.astro

34 lines
866 B
Plaintext

---
import "@fontsource/inter/latin.css";
import "../scss/common.scss";
/** Properties for the base layout. */
export interface Props {
/** Page frontmatter data. */
frontmatter: {
/** Path to an image to use as the favicon, defaults to the Holllo logo. */
favicon?: string;
/** The text to use for the `<title>` element. */
pageTitle: string;
};
}
const {frontmatter} = Astro.props;
const favicon = "/" + (frontmatter.favicon ?? "holllo-mark-square.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 class="love">
<slot />
</body>
</html>