|
16 | 16 | const bareRoutes = ['/get']; |
17 | 17 | const bare = $derived(bareRoutes.includes($page.url.pathname.replace(/\/$/, '') || '/')); |
18 | 18 |
|
19 | | - // Internal tooling under /dev sets its own noindex tag. Emitting the global |
20 | | - // index directive here too would leave the page with two conflicting robots |
21 | | - // metas, and crawlers may honour either one. |
22 | | - const internal = $derived($page.url.pathname.startsWith('/dev')); |
23 | | -
|
24 | 19 | // Campaign params are captured on every entry, not just /get, and the first |
25 | 20 | // valid one wins for the session — so a visitor who lands on an ad URL and |
26 | 21 | // then browses to /erp still has their store click credited to the ad. |
|
47 | 42 | </script> |
48 | 43 |
|
49 | 44 | <svelte:head> |
50 | | - <!-- Global, always-on tags. Per-page title/description/canonical/OG/JSON-LD |
51 | | - are set by the <Seo> component in each route. --> |
| 45 | + <!-- Global chrome only. Title/description/canonical/OG/robots/JSON-LD come |
| 46 | + from <Seo> on each public route. /dev pages set their own noindex. --> |
52 | 47 | <meta charset="utf-8" /> |
53 | 48 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
54 | 49 | <meta name="author" content="MaskedSyntax" /> |
55 | | - {#if !internal} |
56 | | - <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" /> |
57 | | - <meta name="googlebot" content="index, follow, max-image-preview:large, max-snippet:-1" /> |
58 | | - {/if} |
59 | 50 | <meta name="application-name" content="Patterns" /> |
60 | 51 | <meta name="theme-color" content="#0A0A0A" /> |
61 | 52 | <meta name="color-scheme" content="dark light" /> |
62 | | - <meta property="og:site_name" content="Patterns" /> |
63 | | - <meta property="og:locale" content="en_US" /> |
64 | 53 | <meta name="mobile-web-app-capable" content="yes" /> |
65 | 54 | <meta name="apple-mobile-web-app-capable" content="yes" /> |
66 | 55 | <meta name="apple-mobile-web-app-status-bar-style" content="black" /> |
|
0 commit comments