webcompile/src/routes/blog/+page.server.ts
2023-01-25 19:11:11 +02:00

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;