mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 12:57:48 +00:00
12 lines
252 B
TypeScript
12 lines
252 B
TypeScript
import type { LayoutLoad } from './$types';
|
|
|
|
export const load: LayoutLoad = ({ url }) => {
|
|
const tutorials = import.meta.glob('./**/*.markdoc', {
|
|
eager: true
|
|
});
|
|
return {
|
|
tutorials,
|
|
pathname: url.pathname
|
|
};
|
|
};
|