Yes
This commit is contained in:
46
00-Lesson-Site/src/layouts/LessonLayout.astro
Normal file
46
00-Lesson-Site/src/layouts/LessonLayout.astro
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
// Path: src/layouts/LessonLayout.astro
|
||||
|
||||
import { ClientRouter } from "astro:transitions";
|
||||
|
||||
import Navbar from "../components/Navbar/Navbar.astro";
|
||||
import FloatingTOC from "../components/Post/FloatingTOC.astro";
|
||||
import ThemeScript from "../helpers/colorMode.astro";
|
||||
import "../styles/main.scss";
|
||||
|
||||
interface Props {
|
||||
pageTitle?: string;
|
||||
}
|
||||
|
||||
const { pageTitle = "Web Dev Lessons" } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<ClientRouter />
|
||||
|
||||
<!-- Color Mode Helper -->
|
||||
<ThemeScript />
|
||||
|
||||
<!-- Favicon Icons -->
|
||||
<link rel="icon" href="favicon/favicon.ico" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png" />
|
||||
<link rel="manifest" href="favicon/site.webmanifest" />
|
||||
|
||||
<title>{pageTitle}</title>
|
||||
</head>
|
||||
<body>
|
||||
<Navbar />
|
||||
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<FloatingTOC />
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user