diff --git a/web/src/lib/components/seo/PageHead.svelte b/web/src/lib/components/seo/PageHead.svelte new file mode 100644 index 000000000..c7c2b8e97 --- /dev/null +++ b/web/src/lib/components/seo/PageHead.svelte @@ -0,0 +1,40 @@ + + + + {#if fullTitle} + {fullTitle} + + + {/if} + {#if description} + + + + {/if} + {#if type} + + {/if} + {#if noindex} + + {/if} + diff --git a/web/src/routes/[handle]/[repo]/commit/[ref]/+page.svelte b/web/src/routes/[handle]/[repo]/commit/[ref]/+page.svelte index 2843beab1..2934fb935 100644 --- a/web/src/routes/[handle]/[repo]/commit/[ref]/+page.svelte +++ b/web/src/routes/[handle]/[repo]/commit/[ref]/+page.svelte @@ -10,7 +10,7 @@ import repoCommitviewFullCommit from "$lib/bones/repo-commitview--full-commit.bones.json"; import CommitView from "$lib/components/repo/CommitView.svelte"; import Pending from "$lib/components/ui/Pending.svelte"; - import Meta from "$lib/components/seo/Meta.svelte"; + import PageHead from "$lib/components/seo/PageHead.svelte"; import type { DiffStyle } from "$lib/components/repo/pierre"; let { data } = $props(); @@ -64,7 +64,7 @@ ); - + {#snippet skeleton()} diff --git a/web/src/routes/[handle]/[repo]/fork/+page.svelte b/web/src/routes/[handle]/[repo]/fork/+page.svelte index c5b2c2b3a..737e7d909 100644 --- a/web/src/routes/[handle]/[repo]/fork/+page.svelte +++ b/web/src/routes/[handle]/[repo]/fork/+page.svelte @@ -1,5 +1,5 @@ - - import Meta from "$lib/components/seo/Meta.svelte"; + import PageHead from "$lib/components/seo/PageHead.svelte"; import { goto } from "$app/navigation"; import { page } from "$app/state"; import { resolve } from "$app/paths"; @@ -32,7 +32,7 @@ }; - - import Meta from "$lib/components/seo/Meta.svelte"; + import PageHead from "$lib/components/seo/PageHead.svelte"; import { page } from "$app/state"; import PullCompose from "$lib/components/repo/pulls/PullCompose.svelte"; import Pending from "$lib/components/ui/Pending.svelte"; @@ -19,7 +19,7 @@ }); - - +