Skip to content

Commit 587499e

Browse files
committed
exclude docs pages from default og image
1 parent 0ffe2f9 commit 587499e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/svelte.dev/src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</script>
4040

4141
<svelte:head>
42-
{#if !page.route.id?.startsWith('/blog/')}
42+
{#if !page.route.id || !page.route.id.startsWith('/blog/') || !/^\/docs\/[^\/]+\/[^\/]+$/.test(page.route.id)}
4343
<meta name="twitter:card" content="summary" />
4444
<meta name="twitter:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
4545
<meta name="og:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />

0 commit comments

Comments
 (0)