~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
10 lines · 470 B Raw History
<script lang="ts">
  import { m } from '#lib/paraglide/messages.js';
  import { siteName } from '#lib/brand.ts';
  import { page } from '$app/state';
  /** The page's title in the browser: what it is (`text`), then the host's name; the name alone without one. */
  let { text }: { text?: string } = $props();
  const site = $derived(siteName(page.data.brand));
</script>

<svelte:head><title>{text ? m.title_with_site({ page: text, site }) : site}</title></svelte:head>