2026-03-02T08-41-49_auto_memory/memories.db-wal

This commit is contained in:
Nicholai Vogel 2026-03-02 01:41:49 -07:00
parent ebfcaed2cc
commit cbc9514c84
3 changed files with 29 additions and 0 deletions

View 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.