mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
29 lines
693 B
Plaintext
29 lines
693 B
Plaintext
---
|
|
import Header from "@/components/Header.astro";
|
|
import Footer from "@/components/Footer.astro";
|
|
import Breadcrumb from "@/components/Breadcrumb.astro";
|
|
import Layout from "./Layout.astro";
|
|
import { SITE } from "@/config";
|
|
|
|
export interface Props {
|
|
frontmatter: {
|
|
title: string;
|
|
description?: string;
|
|
};
|
|
}
|
|
|
|
const { frontmatter } = Astro.props;
|
|
---
|
|
|
|
<Layout title={`${frontmatter.title} | ${SITE.title}`}>
|
|
<Header />
|
|
<Breadcrumb />
|
|
<main id="main-content">
|
|
<section id="about" class="prose mb-28 max-w-3xl prose-img:border-0">
|
|
<h1 class="text-2xl tracking-wider sm:text-3xl">{frontmatter.title}</h1>
|
|
<slot />
|
|
</section>
|
|
</main>
|
|
<Footer />
|
|
</Layout>
|