Skip to content

Commit

Permalink
feat: add page titles and opengraph metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Sep 19, 2024
1 parent 41b7c5b commit e34a2ab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
import { ModeWatcher } from 'mode-watcher';
</script>

<svelte:head>
<title>MWMBL</title>
<meta property="og:title" content="The first truly open source search engine" />
<meta property="og:site_name" content="MWMBL Search Engine" />
<meta property="og:type" content="website" />
<meta
property="og:description"
content={'Mwmbl (pronounced "mumble") is the first search engine that\'s completely independent, open source, and non-profit.'}
/>
<meta property="og:determiner" content="the" />
</svelte:head>

<ModeWatcher />
<div class="flex min-h-screen flex-col">
<slot></slot>
Expand Down
4 changes: 4 additions & 0 deletions src/routes/search/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
let { data } = $props();
</script>

<svelte:head>
<title>{data.query} - MWMBL</title>
</svelte:head>

<div class="header-grid mx-auto w-full max-w-screen-xl justify-center gap-4 p-5">
<header class="contents">
<a
Expand Down

0 comments on commit e34a2ab

Please sign in to comment.