aboutsummaryrefslogtreecommitdiff
path: root/src/components/PostElement.astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-04-09 11:52:31 +0300
committerValentin Popov <valentin@popov.link>2026-04-09 11:52:31 +0300
commit994fb09d050b70204f327874a474e97d342ce006 (patch)
tree7ba5e46aaf9cd28fe551bcedd0a528fb19899281 /src/components/PostElement.astro
parent7dd43ae74ecb9fe443d5102e290e39612aa7e9ec (diff)
parentf90592d8a106bea418cbd3d8bce9c2d86029f93c (diff)
downloadpopov.link-994fb09d050b70204f327874a474e97d342ce006.tar.xz
popov.link-994fb09d050b70204f327874a474e97d342ce006.zip
Merge pull request 'fix(deps): update dependency astro to v6' (!21) from renovate/major-astro-monorepo into master
Reviewed-on: https://code.popov.link/valentineus/popov.link/pulls/21
Diffstat (limited to 'src/components/PostElement.astro')
-rw-r--r--src/components/PostElement.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/PostElement.astro b/src/components/PostElement.astro
index 8b4b7c4..051a8ff 100644
--- a/src/components/PostElement.astro
+++ b/src/components/PostElement.astro
@@ -1,5 +1,5 @@
---
-import { type CollectionEntry } from "astro:content";
+import { type CollectionEntry, render } from "astro:content";
import dayjs from "dayjs";
type Props = {
@@ -7,7 +7,7 @@ type Props = {
};
const { post } = Astro.props;
-const { remarkPluginFrontmatter } = await post.render();
+const { remarkPluginFrontmatter } = await render(post);
const formattedDate = dayjs(post.data.datePublished.toString()).format("MMMM DD, YYYY");
const datePublished = post.data.datePublished.toISOString();
@@ -28,7 +28,7 @@ const datePublished = post.data.datePublished.toISOString();
<li>
<article>
- <a href={`/blog/${post.slug}`} lang={post.data.lang}>{post.data.title}</a>
+ <a href={`/blog/${post.id}`} lang={post.data.lang}>{post.data.title}</a>
<div>
<small>
<time datetime={datePublished} lang="en">{formattedDate}</time>