mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Add Breadcrumb component in Main layout
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
import Breadcrumbs from "@components/Breadcrumbs.astro";
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
pageTitle: string;
|
pageTitle: string;
|
||||||
pageDesc?: string;
|
pageDesc?: string;
|
||||||
@@ -7,6 +9,7 @@ export interface Props {
|
|||||||
const { pageTitle, pageDesc } = Astro.props;
|
const { pageTitle, pageDesc } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<Breadcrumbs />
|
||||||
<main id="main-content">
|
<main id="main-content">
|
||||||
<h1>{pageTitle}</h1>
|
<h1>{pageTitle}</h1>
|
||||||
<p>{pageDesc}</p>
|
<p>{pageDesc}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user