From d45fcf8b149f4a4685ef4a14c9163958c8b3a3b8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 18 Apr 2024 19:29:45 -0700 Subject: [PATCH] use public url --- .github/workflows/gh-pages-deploy.yml | 2 +- musical-leptos/index.html | 31 ++++++++++++++++----------- musical-leptos/src/pages/not_found.rs | 2 ++ 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml index bb744f6..ba61429 100644 --- a/.github/workflows/gh-pages-deploy.yml +++ b/.github/workflows/gh-pages-deploy.yml @@ -49,7 +49,7 @@ jobs: # relatively as favicon.ico. if we skip public-url option, the href paths will instead request username.github.io/favicon.ico which # will obviously return error 404 not found. # run: cd musical-leptos && ./trunk build --release --public-url "${GITHUB_REPOSITORY#*/}" - run: cd musical-leptos && ./trunk build --release --public-url "blinkystitt.github.com/musical-lights-rs" + run: echo "${GITHUB_REPOSITORY#*/}" && cd musical-leptos && ./trunk build --release --public-url "${GITHUB_REPOSITORY#*/}" # Deploy with Github Static Pages diff --git a/musical-leptos/index.html b/musical-leptos/index.html index 9c45715..a78cd5a 100644 --- a/musical-leptos/index.html +++ b/musical-leptos/index.html @@ -1,15 +1,20 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/musical-leptos/src/pages/not_found.rs b/musical-leptos/src/pages/not_found.rs index 2f867cb..1b22c89 100644 --- a/musical-leptos/src/pages/not_found.rs +++ b/musical-leptos/src/pages/not_found.rs @@ -3,5 +3,7 @@ use leptos::*; /// 404 Not Found Page #[component] pub fn NotFound() -> impl IntoView { + // TODO: console.log errors + view! {

"Uh oh!"
"We couldn't find that page!"

} }