forked from ProjectSegfault/website
13 lines
250 B
TypeScript
13 lines
250 B
TypeScript
import type { PageServerLoad } from "./$types";
|
|
import fetchGhost from "./fetchGhost";
|
|
|
|
export const load = (async ({ fetch }) => {
|
|
const meta = {
|
|
title: "Blog"
|
|
}
|
|
|
|
return {
|
|
posts: fetchGhost("posts"),
|
|
...meta
|
|
};
|
|
}) satisfies PageServerLoad; |