2026-03-02T08-41-49_auto_memory/memories.db-wal
This commit is contained in:
parent
ebfcaed2cc
commit
cbc9514c84
29
chatgpt-to-claude/src/pages/blog/[...slug].astro
Normal file
29
chatgpt-to-claude/src/pages/blog/[...slug].astro
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
import { getCollection, render } from "astro:content";
|
||||
import BlogPost from "@/layouts/BlogPost.astro";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const posts = await getCollection("blog");
|
||||
return posts.map((post) => ({
|
||||
params: { slug: post.id },
|
||||
props: post,
|
||||
}));
|
||||
}
|
||||
|
||||
const post = Astro.props;
|
||||
const { Content, headings } = await render(post);
|
||||
---
|
||||
|
||||
<BlogPost
|
||||
title={post.data.title}
|
||||
description={post.data.description}
|
||||
pubDate={post.data.pubDate}
|
||||
updatedDate={post.data.updatedDate}
|
||||
heroImage={post.data.heroImage}
|
||||
category={post.data.category}
|
||||
tags={post.data.tags}
|
||||
content={post.body ?? ""}
|
||||
headings={headings}
|
||||
>
|
||||
<Content />
|
||||
</BlogPost>
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user