Skip to content

Commit

Permalink
fix routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Akatuoro committed Apr 30, 2024
1 parent 3c79d54 commit 3daf969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ jobs:
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Copy entry page
# needed for refreshing the site on these routes
run: cp build/index.html build/model.html && cp build/index.html build/about.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload dist folder
path: './build'
- name: Deploy to GitHub Pages
id: deployment
Expand Down
3 changes: 0 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
import { base } from "$app/paths";
function load() {
const overlay = document.getElementById("overlay")
overlay.hidden = false
location.href = base + '/model'
}
</script>

<div id="home">
Expand Down

0 comments on commit 3daf969

Please sign in to comment.