feat: add header component and update blog layout
- Introduced a new Header component for site navigation. - Integrated Header into BaseLayout for consistent site structure. - Updated blog post layout to include the post title in a dedicated section. - Minor update to README for license clarity.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
---
|
||||
import Analytics from "../components/Analytics.astro";
|
||||
import Head from "../components/Head.astro";
|
||||
import Header from "../components/Header.astro";
|
||||
import "../scss/global.scss";
|
||||
|
||||
type Props = {
|
||||
@@ -19,6 +20,10 @@ const { description, title } = Astro.props;
|
||||
|
||||
<body>
|
||||
<main>
|
||||
<section>
|
||||
<Header />
|
||||
</section>
|
||||
|
||||
<slot />
|
||||
</main>
|
||||
<Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
|
||||
|
||||
Reference in New Issue
Block a user