Skip to content

Conversation

@pettinarip
Copy link
Member

@pettinarip pettinarip commented Oct 31, 2025

Description

Add robots noindex for untranslated pages (MD and non‑MD), improving SEO by avoiding indexing fallback English content.

Changes

  • MD pages: Use importMd’s isTranslated to set noIndex in getMetadata.
  • Non‑MD pages: Determine translation via isPageTranslated(locale, slug) and include noindex logic in getMetadata.
  • Extract the primary namespace mapping logic to its own function getPrimaryNamespaceForPath to determine if isPageTranslated
  • Reorganize i18n helpers to src/lib/i18n
@netlify
Copy link

netlify bot commented Oct 31, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit cb08593
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6908e8760c22e70008281278
😎 Deploy Preview https://deploy-preview-16601--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 47 (🔴 down 3 from production)
Accessibility: 94 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 92 (no change 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 the tooling 🔧 Changes related to tooling of the project label Oct 31, 2025
@pettinarip pettinarip marked this pull request as ready for review November 3, 2025 17:40
Copy link
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.

Looking good @pettinarip... logic looks good and spot checking some pages everything seems to be working as expected.

@wackerow wackerow merged commit 6d38b60 into dev Nov 4, 2025
7 checks passed
@wackerow wackerow deleted the noindex-untranslated-pages branch November 4, 2025 01:10
This was referenced Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

3 participants