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