Skip to content

Fix page metadata titles without the site-name suffix - #209

Merged
ascorbic merged 2 commits into
emdash-cms:mainfrom
JonahFoster:fix/og-title-page-title
Apr 11, 2026
Merged

ascorbic merged 2 commits into
emdash-cms:mainfrom
JonahFoster:fix/og-title-page-title

Conversation

@JonahFoster

@JonahFoster JonahFoster commented Apr 4, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes shared page metadata title handling so Open Graph, Twitter, and article JSON-LD can use a page-specific title without inheriting the site-name suffix from the document <title>.

Closes #168

Type of change

  • Bug fix
  • Feature (requires approved Discussion)
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

AI-generated code disclosure

  • This PR includes AI-generated code

Screenshots / test output

Behavior check:

  • Site name remains in the document <title>
  • og:title uses the page title without the site-name suffix
Site name is visible in the title tag but not in the meta og:title tag

Validation run:

  • pnpm typecheck passed
  • pnpm typecheck:demos passed
  • pnpm typecheck:templates passed
  • pnpm test passed
  • pnpm format run
  • pnpm --silent lint:json | jq '.diagnostics | length' returned 0

@changeset-bot

changeset-bot Bot commented Apr 4, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4762076

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
emdash Patch
@emdash-cms/cloudflare Patch
@emdash-cms/plugin-ai-moderation Patch
@emdash-cms/plugin-atproto Patch
@emdash-cms/plugin-audit-log Patch
@emdash-cms/plugin-color Patch
@emdash-cms/plugin-embeds Patch
@emdash-cms/plugin-forms Patch
@emdash-cms/plugin-webhook-notifier Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

@ascorbic

Copy link
Copy Markdown
Member

@JonahFoster there have been some conflicting PRs merged that seem to partially do the same thing. Your fix is more comprehensive, so can you look at the conficts and see what needs changing. Thanks

@pkg-pr-new

pkg-pr-new Bot commented Apr 11, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@209

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@209

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@209

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@209

emdash

npm i https://pkg.pr.new/emdash@209

create-emdash

npm i https://pkg.pr.new/create-emdash@209

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@209

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@209

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@209

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@209

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@209

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@209

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@209

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@209

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@209

commit: 4762076

@JonahFoster

Copy link
Copy Markdown
Contributor Author

@JonahFoster there have been some conflicting PRs merged that seem to partially do the same thing. Your fix is more comprehensive, so can you look at the conficts and see what needs changing. Thanks

Should be all good @ascorbic

@ascorbic ascorbic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@ascorbic
ascorbic merged commit d421ee2 into emdash-cms:main Apr 11, 2026
25 checks passed
This was referenced Apr 11, 2026
fmhall pushed a commit to fmhall/emdash that referenced this pull request Apr 13, 2026
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.

og:title in base SEO contributions includes site name

2 participants