website/src/routes/blog/+page.server.ts

14 lines
252 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;