Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
maehr committed Sep 6, 2023
1 parent c379778 commit 739fd56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/routes/index/[...path]/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export async function load({ params }) {
if (params.path === '') {
return { url: 'index.html' };
}
if (!params.path.endsWith('.html')) params.path += '.html';
if (data.urls.includes(params.path)) {
return { url: params.path };
} else {
Expand Down
2 changes: 0 additions & 2 deletions src/routes/index/[...path]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import Container from '$lib/components/Container.svelte';
/** @type {import('./$types').PageData} */
export let data;
// append .html if not present
if (!data.url.endsWith('.html')) data.url += '.html';
</script>

<!-- SEO -->
Expand Down

0 comments on commit 739fd56

Please sign in to comment.