Skip to content

Commit

Permalink
Include initial-scale=1 in viewport meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed May 14, 2023
1 parent fa4fd53 commit 05f8fd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/friendly-planets-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/starlight": patch
---

Include `initial-scale=1` in viewport meta tag.
5 changes: 4 additions & 1 deletion packages/starlight/components/HeadSEO.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const description = data.description || config.description;
const headDefaults: z.input<ReturnType<typeof HeadConfigSchema>> = [
{ tag: 'meta', attrs: { charset: 'utf-8' } },
{ tag: 'meta', attrs: { name: 'viewport', content: 'width=device-width' } },
{
tag: 'meta',
attrs: { name: 'viewport', content: 'width=device-width, initial-scale=1' },
},
{ tag: 'title', content: title },
{ tag: 'link', attrs: { rel: 'canonical', href: canonical?.href } },
{ tag: 'meta', attrs: { name: 'generator', content: Astro.generator } },
Expand Down

0 comments on commit 05f8fd4

Please sign in to comment.