Enable search on all pages

This commit is contained in:
2026-10-02 18:19:42 +02:00
parent 09fa193e9a
commit d5772c24e5
6 changed files with 46 additions and 36 deletions

View File

@@ -1,3 +1,8 @@
<script lang="ts" module>
// Opens a page like a click on a link does. Set by the Router when it mounts
export let navigate: (href: string) => void
</script>
<script lang="ts">
import { onMount, tick, type Component } from "svelte";
import NotFound from "./NotFound.svelte";
@@ -161,6 +166,8 @@ const load_page = async (href: string, history: boolean) => {
})
}
navigate = href => load_page(href, true)
const click = (e: MouseEvent) => {
// Middle clicks, right clicks and modified clicks open the link in a new
// tab or window. That's the browser's job, not ours