Repository navigation
Fix how edorax.com appears in Google: titles, descriptions, noindex and nosnippet - #264
Merged
Merged
Conversation
Checks status, unique title, a 120 to 160 character description, self-referencing canonical and noindex for each sitemap URL, that sign-in and checkout pages are noindex, and that the home page has WebSite and Organization structured data.
Google rewrites descriptions that are too short or too long from page text. Course pages now build theirs from the course data (whole sentences, then chapter count, hours and a closing line), without the leading byline. Visual lab and audiobook pages use the same helper.
/labs?kind=visual is the same page as /labs, which is its canonical. Note in robots.ts why sign-in pages are not blocked there: crawlers must read their noindex tag.
They showed up as sitelinks under the home page with quiz text as the snippet. Each now has its own title and a noindex robots tag.
The hero lab window, sample quiz question and answer options, AI tutor examples, sample tutor calls, puzzle examples, the practice preview and the visual lab boards are demos, not page content. Google must not quote them as a snippet. Marketing copy stays snippet-eligible.
Both use the name Edorax, and the organization logo is the Edorax mark (icons/icon-512.png), so Google shows the site name correctly.
Next streams metadata into the body for crawlers missing from its HTML limited bots list, and that list leaves out Googlebot. Course pages had no title or description in head for Google.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
In Google results for "edorax", the sitelinks under the home page quoted quiz text: "Create your account" showed answer options from the sample question, and "Sign in" showed "You type edorax.com and press Go...". The sign-in and sign-up pages render the sample quiz, had no title or description of their own, and were indexable. Course pages also had no title or description in
<head>for Googlebot (Next streamed them into the body).What changed
src/lib/seo.ts,fitDescription) builds them: whole sentences that fit, then extra sentences until long enough. Course pages build theirs from the course data (description without the leading byline, chapter count, hours). Visual lab and audiobook pages use the same helper. Audiobooks, practice and puzzles got longer hand-written ones.data-nosnippeton demo and quiz content: the hero lab window (try-it question, order blocks, mock shell), the sample quiz on the auth pages, the AI tutor examples, sample tutor calls, puzzle examples, the practice preview and the visual lab boards. Marketing copy stays snippet-eligible./icons/icon-512.png(the Edorax mark;/logo.pngis still the old mark).<head>(htmlLimitedBots= Next's default list plus Googlebot)./labs?kind=visualis the same page as/labs(its canonical).scripts/seo-audit.mjschecks all of this against any base URL:node scripts/seo-audit.mjs https://www.edorax.com.Checks
tsc --noEmit, eslint on changed files,next build: pass.vitest run tests/seo-description.test.ts: 5 passed./login,/signup,/verify-email, checkout indexableEvery sitemap URL, before and after
//catalog/learn/audiobooks/labs/practice/puzzles/voice/labs?kind=visual/labs/guided/labs/shell/labs/visual/hld-m2-utilisation-knee/labs/visual/hld-m4-three-tiers/labs/visual/hld-m20-wasla-redirects/labs/visual/hld-visual-url-shortener/labs/visual/hld-visual-news-feed/labs/visual/hld-visual-chat/labs/visual/hld-visual-product-search/labs/visual/hld-visual-ride-matching/labs/visual/hld-visual-ticket-drop/labs/visual/hld-visual-web-crawler/labs/visual/hld-visual-video-platform/labs/visual/aws-web-tier/labs/visual/k8s-web-app/labs/visual/docker-compose-stack/labs/visual/linux-single-host/labs/visual/net-explore-office/labs/visual/net-lab-fix-office/labs/visual/net-lab-plan-school/labs/visual/net-lab-build-two-subnets/labs/visual/net-lab-home-router/labs/visual/net-lab-no-internet/catalog/ai-evals-harnesses/catalog/ansible-in-practice/catalog/aws-in-practice/catalog/collaboration/catalog/communication/catalog/ai-engineering-interview/catalog/css-fundamentals/catalog/database-challenges/catalog/decision-making/catalog/dw-level-3/catalog/docker-in-practice/catalog/html-foundations/catalog/build-with-ai/catalog/dw-level-1/catalog/site-and-outreach/catalog/multi-vendor-marketplace/catalog/networking/catalog/ownership/catalog/product-sense/catalog/business-communication/catalog/rag-eval-harness/catalog/software-engineering-concepts/catalog/faith-and-resilience/catalog/system-design/catalog/terraform-in-practice/catalog/founder-interviews/catalog/logic-building/catalog/cause-and-effect/catalog/career-brandAfter merge
Recheck the live site with the same script, then request reindexing of the home page in Google Search Console. Sitelinks update when Google recrawls.