2022-12-30 22:32:49 +05:30
|
|
|
import type { PageServerLoad } from "./$types";
|
2023-01-25 22:41:11 +05:30
|
|
|
import fetchGhost from "./fetchGhost";
|
2022-12-30 22:32:49 +05:30
|
|
|
|
2023-01-25 22:41:11 +05:30
|
|
|
export const load = (async ({ fetch }) => {
|
|
|
|
const meta = {
|
|
|
|
title: "Blog"
|
|
|
|
}
|
2022-12-30 22:32:49 +05:30
|
|
|
|
2023-01-01 04:51:53 +05:30
|
|
|
return {
|
2023-01-25 22:41:11 +05:30
|
|
|
posts: fetchGhost("posts"),
|
|
|
|
...meta
|
2023-01-01 04:51:53 +05:30
|
|
|
};
|
2023-01-25 22:41:11 +05:30
|
|
|
}) satisfies PageServerLoad;
|