diff options
| author | Valentin Popov <valentin@popov.link> | 2026-04-09 11:52:31 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-04-09 11:52:31 +0300 |
| commit | 994fb09d050b70204f327874a474e97d342ce006 (patch) | |
| tree | 7ba5e46aaf9cd28fe551bcedd0a528fb19899281 /src/pages/blog | |
| parent | 7dd43ae74ecb9fe443d5102e290e39612aa7e9ec (diff) | |
| parent | f90592d8a106bea418cbd3d8bce9c2d86029f93c (diff) | |
| download | popov.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/pages/blog')
| -rw-r--r-- | src/pages/blog/[...slug].astro | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index d12ff05..3bd2c61 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -1,5 +1,5 @@ --- -import { type CollectionEntry, getCollection } from "astro:content"; +import { type CollectionEntry, getCollection, render } from "astro:content"; import Comments from "../../components/Comments.astro"; import Layout from "../../layouts/BaseLayout.astro"; import blogPostSchema from "../../utils/schemas/blogPostSchema"; @@ -13,20 +13,20 @@ export async function getStaticPaths() { }); return posts.map((post) => ({ - params: { slug: post.slug }, + params: { slug: post.id }, props: post, })); } const post = Astro.props; -const { Content, remarkPluginFrontmatter } = await post.render(); +const { Content, remarkPluginFrontmatter } = await render(post); const description = post.data.description; const isBasedOn = post.data.basedOn; const lang = post.data.lang; -const preview = `/images/preview/${post.slug}.png`; -const slug = post.slug; +const preview = `/images/preview/${post.id}.png`; +const slug = post.id; const title = post.data.title; const dateModified = post.data.dateModified?.toISOString(); |
