Skip to content

Commit 482b0e3

Browse files
authored
fix: use meta.title as default <title> (#454)
1 parent 3c608fb commit 482b0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/astro/src/default/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const canonicalUrl = Astro.site ? new URL(Astro.url.pathname, Astro.site).toStri
1818
<html lang="en" transition:animate="none" class="h-full overflow-hidden">
1919
<head>
2020
<HeadTags>
21-
<title slot="title">{title}</title>
21+
<title slot="title">{meta?.title || title}</title>
2222

2323
<Fragment slot="links">
2424
{canonicalUrl && <link rel="canonical" href={canonicalUrl} />}

0 commit comments

Comments
 (0)