Skip to content

Fix how edorax.com appears in Google: titles, descriptions, noindex and nosnippet - #264

Merged
ZeeshanAdilButt merged 8 commits into
mainfrom
fix/seo-titles-snippets
Nov 23, 2026
Merged

ZeeshanAdilButt merged 8 commits into
mainfrom
fix/seo-titles-snippets

Conversation

@ZeeshanAdilButt

Copy link
Copy Markdown
Member

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

  • Descriptions of 120 to 160 characters on every sitemap page. A small helper (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.
  • Sign-in, sign-up, verify, checkout and invite pages are noindex with their own titles, so they stop being sitelinks. They are not blocked in robots.txt, so crawlers can read the noindex.
  • data-nosnippet on 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.
  • WebSite and Organization structured data on the home page, name "Edorax", logo /icons/icon-512.png (the Edorax mark; /logo.png is still the old mark).
  • Googlebot gets titles and descriptions in <head> (htmlLimitedBots = Next's default list plus Googlebot).
  • Sitemap lists only plain paths: /labs?kind=visual is the same page as /labs (its canonical).
  • scripts/seo-audit.mjs checks 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.
  • Audit script on a local production build (API from the live site): all checks passed. Before, on the live site: 59 failing checks.
Before (live) After (local build)
Sitemap URLs 61 60
Description outside 120 to 160 23 0
No title or description in head (course pages) 29 0
Duplicate titles 2 0
/login, /signup, /verify-email, checkout indexable 4 0
Home WebSite + Organization markup missing present
Every sitemap URL, before and after
URL Before: title / description chars After: title / description chars
/ Edorax: every lesson starts with a question / 129 Edorax: every lesson starts with a question / 129
/catalog Explore courses / 125 Explore courses / 125
/learn Everything you can learn / 123 Everything you can learn / 123
/audiobooks Audiobooks / 119 Audiobooks / 129
/labs Labs / 120 Labs / 120
/practice Bite-sized practice / 103 Bite-sized practice / 146
/puzzles Puzzles / 112 Puzzles / 140
/voice On-call tutors / 126 On-call tutors / 126
/labs?kind=visual Labs / 120 removed from sitemap
/labs/guided Guided labs / 155 Guided labs / 155
/labs/shell Shell labs and the desktop app / 121 Shell labs and the desktop app / 121
/labs/visual/hld-m2-utilisation-knee The point where waiting explodes (the utilisation knee) / 72 The point where waiting explodes (the utilisation knee) / 129
/labs/visual/hld-m4-three-tiers Three layers for 10,000 requests a second (a three-tier design) / 161 Three layers for 10,000 requests a second (a three-tier design) / 151
/labs/visual/hld-m20-wasla-redirects Wasla's redirects: answers kept in memory (cache-aside) / 99 Wasla's redirects: answers kept in memory (cache-aside) / 156
/labs/visual/hld-visual-url-shortener Design a short-link service (a URL shortener) / 188 Design a short-link service (a URL shortener) / 151
/labs/visual/hld-visual-news-feed Design a home feed (a news feed) / 226 Design a home feed (a news feed) / 138
/labs/visual/hld-visual-chat Design a chat service (messages, online dots and alerts) / 239 Design a chat service (messages, online dots and alerts) / 147
/labs/visual/hld-visual-product-search Design a product search box (search and typeahead) / 245 Design a product search box (search and typeahead) / 152
/labs/visual/hld-visual-ride-matching Design a ride service that finds nearby drivers (ride matching) / 224 Design a ride service that finds nearby drivers (ride matching) / 136
/labs/visual/hld-visual-ticket-drop Design a ticket drop (a flash sale) / 288 Design a ticket drop (a flash sale) / 152
/labs/visual/hld-visual-web-crawler Design a web page collector (a web crawler) / 218 Design a web page collector (a web crawler) / 129
/labs/visual/hld-visual-video-platform Design a video platform (video streaming at scale) / 205 Design a video platform (video streaming at scale) / 159
/labs/visual/aws-web-tier A web tier on AWS / 64 A web tier on AWS / 120
/labs/visual/k8s-web-app A web app on Kubernetes / 88 A web app on Kubernetes / 144
/labs/visual/docker-compose-stack A Compose stack / 85 A Compose stack / 141
/labs/visual/linux-single-host One Linux host / 86 One Linux host / 142
/labs/visual/net-explore-office Explore a small network / 91 Explore a small network / 147
/labs/visual/net-lab-fix-office Fix the office network / 111 Fix the office network / 155
/labs/visual/net-lab-plan-school Plan the school network / 111 Plan the school network / 155
/labs/visual/net-lab-build-two-subnets Build a router / 133 Build a router / 133
/labs/visual/net-lab-home-router Reach the home server from outside / 238 Reach the home server from outside / 124
/labs/visual/net-lab-no-internet Connected, but no internet / 172 Connected, but no internet / 121
/catalog/ai-evals-harnesses (none in head) / - AI Evals and Harnesses: Measure It, Trust It, Ship It / 153
/catalog/ansible-in-practice (none in head) / - Ansible in Practice: Configure It Once, Run It Safely, Run It Again / 137
/catalog/aws-in-practice (none in head) / - AWS in Practice: Design It, Secure It, Price It / 158
/catalog/collaboration (none in head) / - Collaboration, Feedback & Conflict Resolution / 143
/catalog/communication (none in head) / - Communication & Articulating Ideas / 154
/catalog/ai-engineering-interview (none in head) / - Cracking the AI Engineering and Agentic AI Interview / 127
/catalog/css-fundamentals (none in head) / - CSS Fundamentals for Beginners / 151
/catalog/database-challenges (none in head) / - Database Challenges: Races, Locks and Transactions / 158
/catalog/decision-making (none in head) / - Decision-Making & Professional Judgment / 153
/catalog/dw-level-3 (none in head) / - Dev Weekends Level 3: Build a Support and Knowledge Agent, and Prove It Works / 137
/catalog/docker-in-practice (none in head) / - Docker in Practice: Run It, Build It, Ship It, Fix It / 138
/catalog/html-foundations (none in head) / - HTML Foundations for Web Development / 123
/catalog/build-with-ai (none in head) / - Learn and Build with AI: An Enabler, Not a Replacement / 143
/catalog/dw-level-1 (none in head) / - Level 1: Code Foundations, build an errand tracker from zero / 150
/catalog/site-and-outreach (none in head) / - Level 2: Your Portfolio and Outreach Engine / 158
/catalog/multi-vendor-marketplace (none in head) / - Multi-vendor Marketplace / 157
/catalog/networking (none in head) / - Networking, Hands On: How Your Devices Really Reach the Internet / 153
/catalog/ownership (none in head) / - Ownership, Initiative & Adaptability / 136
/catalog/product-sense (none in head) / - Product Sense for Engineers: UI, UX and Work People Remember / 157
/catalog/business-communication (none in head) / - Professional & Business Communication / 126
/catalog/rag-eval-harness (none in head) / - RAG Evaluation Harness: Build It, Explain It, Defend It / 145
/catalog/software-engineering-concepts (none in head) / - Software Engineering Concepts, Hands On: How Real Apps Are Built / 160
/catalog/faith-and-resilience (none in head) / - Steady Hearts: Islamic Belief for Uncertain Times / 130
/catalog/system-design (none in head) / - System Design, Hands On: Build It, Break It, Explain It / 146
/catalog/terraform-in-practice (none in head) / - Terraform in Practice: Plan It, Apply It, Break It, Fix It / 138
/catalog/founder-interviews (none in head) / - The Founder Interview: Ownership, Impact and Your Story / 160
/catalog/logic-building (none in head) / - Think Clearly: Logic for the AI Era / 154
/catalog/cause-and-effect (none in head) / - Why Things Happen: Cause, Effect and Systems Thinking / 133
/catalog/career-brand (none in head) / - Your Career Brand: Resume, LinkedIn, Personal Site and Proof of Work / 135

After 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.

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.
@ZeeshanAdilButt
ZeeshanAdilButt merged commit bee22d0 into main Nov 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant