From 720914eee926672a2daa35f1ce57d7be826759d8 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 17 Jun 2026 09:45:23 -0700 Subject: [PATCH] set titles for socials --- src/app.html | 5 ----- src/lib/components/PageHead.svelte | 15 +++++++++++++++ src/routes/+layout.svelte | 11 +++++++++++ src/routes/jobs/+page.js | 7 +++++++ src/routes/jobs/+page.svelte | 8 -------- src/routes/shop/[product]/+page.js | 3 ++- src/routes/shop/[product]/+page.svelte | 4 ---- src/routes/shop/comma-four-trade-in/+page.js | 5 +++++ src/routes/shop/comma-four-trade-in/+page.svelte | 4 ---- 9 files changed, 40 insertions(+), 22 deletions(-) create mode 100644 src/lib/components/PageHead.svelte create mode 100644 src/routes/jobs/+page.js create mode 100644 src/routes/shop/comma-four-trade-in/+page.js diff --git a/src/app.html b/src/app.html index 7902ce85..21bfe795 100644 --- a/src/app.html +++ b/src/app.html @@ -48,8 +48,6 @@ --> - comma.ai — make driving chill - + + + {title} + + + {#if description} + + + + {/if} + \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 3ea9258e..7a405e3f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -35,6 +35,11 @@ import { onMount } from "svelte"; import { page } from "$app/stores"; + import PageHead from "$lib/components/PageHead.svelte"; + + const DEFAULT_TITLE = "comma.ai — make driving chill"; + const SITE_ORIGIN = "https://comma.ai"; + let loading = false; async function openCart() { @@ -83,7 +88,13 @@ printConsoleBanner(); + + + - - Jobs - comma - - -
diff --git a/src/routes/shop/[product]/+page.js b/src/routes/shop/[product]/+page.js index 5e74c9c0..21f7f282 100644 --- a/src/routes/shop/[product]/+page.js +++ b/src/routes/shop/[product]/+page.js @@ -50,7 +50,8 @@ export async function load({ url, params }) { ...productInfo, images: resolvedImages }, - descriptionComponent + descriptionComponent, + pageTitle: `${product.title} — comma shop`, }; } throw error(404, { diff --git a/src/routes/shop/[product]/+page.svelte b/src/routes/shop/[product]/+page.svelte index d27ee91e..0a4198e4 100644 --- a/src/routes/shop/[product]/+page.svelte +++ b/src/routes/shop/[product]/+page.svelte @@ -6,10 +6,6 @@ $: ({ product, descriptionComponent } = data); - - {product.title} — comma shop - -
{#if descriptionComponent} diff --git a/src/routes/shop/comma-four-trade-in/+page.js b/src/routes/shop/comma-four-trade-in/+page.js new file mode 100644 index 00000000..fb1518ce --- /dev/null +++ b/src/routes/shop/comma-four-trade-in/+page.js @@ -0,0 +1,5 @@ +export function load() { + return { + pageTitle: "comma four trade-in — comma shop", + }; +} \ No newline at end of file diff --git a/src/routes/shop/comma-four-trade-in/+page.svelte b/src/routes/shop/comma-four-trade-in/+page.svelte index afb00675..ae83c445 100644 --- a/src/routes/shop/comma-four-trade-in/+page.svelte +++ b/src/routes/shop/comma-four-trade-in/+page.svelte @@ -1,10 +1,6 @@ - - comma four trade-in — comma shop - -

comma four trade-in