mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-13 23:31:07 +08:00
feat: add friends links page
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
---
|
||||
import { getEntry, render } from "astro:content";
|
||||
import Layout from "@/layouts/Layout.astro";
|
||||
import Header from "@/components/Header.astro";
|
||||
import Breadcrumb from "@/components/Breadcrumb.astro";
|
||||
import Main from "@/components/Main.astro";
|
||||
import Footer from "@/components/Footer.astro";
|
||||
import config from "@/config";
|
||||
|
||||
const links = await getEntry("pages", "links");
|
||||
|
||||
if (!links) {
|
||||
throw new Error(
|
||||
"Missing content entry: `links.md` or `links.mdx` in `src/content/pages/`"
|
||||
);
|
||||
}
|
||||
|
||||
const { Content } = await render(links);
|
||||
---
|
||||
|
||||
<Layout
|
||||
title={`${links.data.title} | ${config.site.title}`}
|
||||
description={links.data.description}
|
||||
ogImage={links.data.ogImage}
|
||||
canonicalURL={links.data.canonicalURL}
|
||||
>
|
||||
<Header />
|
||||
|
||||
<Breadcrumb />
|
||||
|
||||
<Main pageTitle={links.data.title} class="app-prose">
|
||||
<Content />
|
||||
</Main>
|
||||
|
||||
<Footer />
|
||||
</Layout>
|
||||
Reference in New Issue
Block a user