Reviewed-on: https://codeberg.org/macchiato/pages/pulls/13
@ -47,7 +47,10 @@ export class Layout extends HTMLElement {
}
get path() {
return '/hello'
return new URL(
window.location.hash.slice(1) || '/',
window.location
).pathname
set editing(value) {
@ -9,7 +9,7 @@ async function initCache() {
'/components/header.js',
'/components/nav-menu.js',
'/components/page-menu.js',
])
]) //1
self.addEventListener("install", event => {