Skip to content

feat(SEO/custom-head): Make og:description set automatically#3115

Merged
SoonIter merged 2 commits intoweb-infra-dev:mainfrom
Karibash:feature/og-description
Feb 10, 2026
Merged

feat(SEO/custom-head): Make og:description set automatically#3115
SoonIter merged 2 commits intoweb-infra-dev:mainfrom
Karibash:feature/og-description

Conversation

@Karibash
Copy link
Copy Markdown
Contributor

@Karibash Karibash commented Feb 9, 2026

Summary

Like og:title, og:description is now set automatically.

Related Issue

close #3114

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings February 9, 2026 01:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR makes Open Graph metadata more consistent by automatically setting og:description from the resolved page description (similar to how og:title is derived from the page title), addressing the feature request in #3114.

Changes:

  • Extend the default head meta generation to include og:description when a description is available.
  • Update the page head tags E2E fixture test to assert that og:description is present.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/core/src/theme/layout/Layout/index.tsx Adds og:description meta tag alongside the existing description meta tag when description is resolved.
e2e/fixtures/page-head-tags/index.test.ts Adds an assertion ensuring og:description is emitted in the generated HTML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@SoonIter SoonIter left a comment

Choose a reason for hiding this comment

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

thanks❤️️, could you update the document here?

@Karibash
Copy link
Copy Markdown
Contributor Author

@SoonIter Thanks! I’ve updated the document at the link you mentioned. f6b05ab

@SoonIter SoonIter changed the title feat(theme): Make og:description set automatically feat(SEO/custom-head): Make og:description set automatically Feb 10, 2026
@SoonIter SoonIter merged commit 99c56b6 into web-infra-dev:main Feb 10, 2026
5 checks passed
@SoonIter
Copy link
Copy Markdown
Member

SoonIter commented Feb 10, 2026

thanks, very useful changes

@Karibash Karibash deleted the feature/og-description branch February 10, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Automatically set og:description from page description

3 participants