From 22e353c04c1d15805be93e6922b45e9372415d8f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 6 Jul 2026 21:53:18 -0400 Subject: update astro --- src/pages/blog/[...slug].astro | 4 ++-- src/pages/blog/index.astro | 2 +- src/pages/index.astro | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pages') diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 5f1b34a..6dc78ba 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -1,6 +1,6 @@ --- import Page from '../../layouts/BlogPost.astro'; -import { getEntry } from 'astro:content'; +import { getEntry, render } from 'astro:content'; import { formatDate } from "../../util"; const { slug } = Astro.params; @@ -14,7 +14,7 @@ if(entry === undefined) { return Astro.redirect('/404'); } -const { Content } = await entry.render(); +const { Content } = await render(entry); ---
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index a35537a..0e4e25e 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -23,7 +23,7 @@ const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.pubDate
{allBlogPosts.map((post) => (
-

{post.data.title}

+

{post.data.title}

{formatDate(post.data.pubDate)}

{post.data.description}

diff --git a/src/pages/index.astro b/src/pages/index.astro index f1c2da9..943dc01 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -100,7 +100,7 @@ const allBlogPosts = (await getCollection('blog')).sort((a, b) => b.data.pubDate

Latest Posts

{allBlogPosts.map((post) => ( -- cgit v1.2.3