Skip to content

Commit

Permalink
Try to fix dynamic routing
Browse files Browse the repository at this point in the history
  • Loading branch information
milkcee12 committed Feb 22, 2024
1 parent e264967 commit 40b517b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Empty file removed .editorconfig
Empty file.
File renamed without changes.
5 changes: 5 additions & 0 deletions src/routes/(app)/archive/[slug]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ export async function load({ params }) {
content: content,
};
}

/** @type {import('./$types').EntryGenerator} */
export function entries() {
return [{ slug: "" }];
}
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const config = {
mdsvex({
extensions: ['.md'],
layout: {
_: './src/routes/MDLayout.svelte'
_: './src/MDLayout.svelte'
},
}),
],
Expand Down

0 comments on commit 40b517b

Please sign in to comment.