feat(all): first init
This commit is contained in:
commit
67c6e47f58
34 changed files with 2155 additions and 0 deletions
24
src/layouts/Layout.astro
Normal file
24
src/layouts/Layout.astro
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
import Head from "@components/Head.astro";
|
||||
import Footer from "@components/Footer.astro";
|
||||
import { SITE } from "@consts";
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
description: string;
|
||||
};
|
||||
|
||||
const { title, description } = Astro.props;
|
||||
---
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<Head title={`${title} | ${SITE.TITLE}`} description={description} />
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue