Files
cv/src/routes/(content)/+layout.server.ts
Joakim Repomaa c8044259cc
All checks were successful
Build and Deploy / build (push) Successful in 1m45s
cleanup
2026-02-19 22:03:32 +02:00

22 lines
623 B
TypeScript

import { loadAllContent } from '$lib/content/loader';
import { fetchContributedRepos, fetchGitHubProjects } from '$lib/github';
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async () => {
const content = await loadAllContent();
const [ownProjects, contributions] = await Promise.all([
fetchGitHubProjects(content.profile.github),
fetchContributedRepos(content.profile.github),
]);
return {
profile: content.profile,
experience: content.experience,
education: content.education,
skills: content.skills,
ownProjects,
contributions,
};
};