All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
15 lines
272 B
TypeScript
15 lines
272 B
TypeScript
export async function load({ params }) {
|
|
const post = await import(`../posts/${params.slug}.md`);
|
|
const { title, date, excerpt, image } = post.metadata;
|
|
const content = post.default;
|
|
|
|
return {
|
|
content,
|
|
title,
|
|
excerpt,
|
|
image,
|
|
date,
|
|
slug: params.slug,
|
|
};
|
|
}
|