Skip to content

Commit c40c49e

Browse files
authored
fix: avoid including the default OG image for docs (#1445)
Update +layout.svelte
1 parent 7172ace commit c40c49e

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 || !page.route.id.startsWith('/blog/') || !/^\/docs\/[^\/]+\/[^\/]+$/.test(page.route.id)}
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)