Skip to content

refactor: centralize site title suffix in metadata#18196

Merged
wackerow merged 2 commits into
ethereum:devfrom
kafeelraza:fix-centralized-site-title
May 18, 2026
Merged

refactor: centralize site title suffix in metadata#18196
wackerow merged 2 commits into
ethereum:devfrom
kafeelraza:fix-centralized-site-title

Conversation

@kafeelraza
Copy link
Copy Markdown
Contributor

@kafeelraza kafeelraza commented May 14, 2026

Description

This PR centralizes the ethereum.org site title suffix handling in getMetadata instead of hardcoding it in translation strings.

Changes

  • Added SITE_TITLE constant in src/lib/constants.ts
  • Replaced t("site-title") usages with SITE_TITLE
  • Centralized title suffix appending in metadata.ts
  • Added bidi isolate wrapping for RTL-safe rendering
  • Removed hardcoded | ethereum.org suffixes from EN intl files
  • Updated homepage metadata title casing to ethereum.org

Notes

  • Homepage avoids duplicate suffixes automatically because the brand is already present in the title.
  • Build failure during prerendering appears unrelated to this PR (ENOENT missing content file).

Related issue

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 04f5d3e
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6a07213adc16100008d9fb4c
😎 Deploy Preview https://deploy-preview-18196.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 66 (🟢 up 1 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (🔴 down 1 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program labels May 14, 2026
@kafeelraza kafeelraza force-pushed the fix-centralized-site-title branch from aa4030a to d2398b5 Compare May 14, 2026 19:54
Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Thanks @kafeelraza! Looks great! Nice and clean

Left one inline code suggestion, but also, src/intl/en/page-layer-2-learn.json line 2 also has the | ethereum.org appendage... would you mind patching that one as well? Then I think this is good to go

Comment thread src/lib/utils/metadata.ts Outdated
@kafeelraza kafeelraza requested a review from Blondie0123 May 16, 2026 08:34
Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the help @kafeelraza!

@wackerow wackerow merged commit d11a978 into ethereum:dev May 18, 2026
7 checks passed
@wackerow
Copy link
Copy Markdown
Member

@all-contributors please add @kafeelraza for code

@allcontributors
Copy link
Copy Markdown
Contributor

@wackerow

I've put up a pull request to add @kafeelraza! 🎉

@kafeelraza
Copy link
Copy Markdown
Contributor Author

Thanks @wackerow and everyone for the review and guidance. Happy to contribute to ethereum.org

@claude claude Bot mentioned this pull request May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content 🖋️ This involves copy additions or edits tooling 🔧 Changes related to tooling of the project translation 🌍 This is related to our Translation Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centralize site name suffix in page titles via getMetadata

3 participants