Skip to content

fix(head): add missing comma between viewport meta properties#2774

Merged
cotes2020 merged 1 commit into
cotes2020:masterfrom
kuibinlin:fix/viewport-comma
Jul 13, 2026
Merged

fix(head): add missing comma between viewport meta properties#2774
cotes2020 merged 1 commit into
cotes2020:masterfrom
kuibinlin:fix/viewport-comma

Conversation

@kuibinlin

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Description

The viewport meta tag in _includes/head.html is missing a comma between the user-scalable and initial-scale properties:

<meta
  name="viewport"
  content="width=device-width, user-scalable=no initial-scale=1, shrink-to-fit=no, viewport-fit=cover"
>

Every other property in the list is comma-separated, but user-scalable=no and initial-scale=1 are separated only by a space, making the value inconsistent with the rest of the list.

Fix

Add the missing comma so all properties are consistently comma-separated:

- content="width=device-width, user-scalable=no initial-scale=1, shrink-to-fit=no, viewport-fit=cover"
+ content="width=device-width, user-scalable=no, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"

There is no behavioral change. Browsers already parse both properties correctly because whitespace is accepted as a separator. This change simply improves the syntax for consistency and validity.

Additional context

No existing issue — noticed while validating the generated HTML.

@cotes2020 cotes2020 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@cotes2020
cotes2020 merged commit 453e23d into cotes2020:master Jul 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants