fix heading links

This commit is contained in:
Vincent (Wen Yu) Ge
2023-09-27 00:52:36 -04:00
parent 3acf7fcf1b
commit 7dd583afe6
25 changed files with 257 additions and 149 deletions

View File

@@ -0,0 +1,11 @@
import type { LayoutLoad } from './$types';
export const load: LayoutLoad = ({ url }) => {
const tutorials = import.meta.glob('./**/*.markdoc', {
eager: true
});
return {
tutorials,
pathname: url.pathname
};
};