mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 19:41:02 +08:00
29 lines
710 B
Plaintext
29 lines
710 B
Plaintext
---
|
|
import { SITE } from "@config";
|
|
import Breadcrumbs from "@components/Breadcrumbs.astro";
|
|
import Footer from "@components/Footer.astro";
|
|
import Header from "@components/Header.astro";
|
|
import Layout from "./Layout.astro";
|
|
|
|
export interface Props {
|
|
frontmatter: {
|
|
title: string;
|
|
description?: string;
|
|
};
|
|
}
|
|
|
|
const { frontmatter } = Astro.props;
|
|
---
|
|
|
|
<Layout title={`${frontmatter.title} | ${SITE.title}`}>
|
|
<Header activeNav="about" />
|
|
<Breadcrumbs />
|
|
<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>
|