Skip to content

fix(seo): valid robots.txt syntax and trailing-slash gallery canonical#42

Merged
Bissbert merged 1 commit into
mainfrom
fix/gsc-robots-and-canonical
May 18, 2026
Merged

fix(seo): valid robots.txt syntax and trailing-slash gallery canonical#42
Bissbert merged 1 commit into
mainfrom
fix/gsc-robots-and-canonical

Conversation

@Bissbert
Copy link
Copy Markdown
Contributor

Summary

  • Drops the non-standard LLM-Content: directive from robots.txt (Lighthouse SEO audit flagged it as a parse error); the /llms.txt discovery path remains advertised via a comment block per the llmstxt.org spec.
  • Folds the orphaned Allow: /crystals/, Allow: /og-images/, Allow: /favicon.svg lines into the User-agent: * stanza where they are semantically effective.
  • Fixes the hard-coded gallery canonical from https://gemmology.dev/gallery to https://gemmology.dev/gallery/ (trailing slash) to match Astro's static output and resolve 27 "Alternative page with correct canonical tag" exclusions reported in Google Search Console.

Test plan

  • npm run build completes with 916 pages, 0 errors — PASS
  • dist/robots.txt mirrors public/robots.txt; no LLM-Content: line present
  • dist/gallery/index.html <link rel="canonical"> contains the trailing-slash URL
  • GSC re-crawl and re-evaluation expected within 1–2 weeks after merge

Drops the non-standard LLM-Content: directive that Lighthouse flagged as
a parse error (the /llms.txt discovery path stays in place via a comment).
Folds the previously orphaned Allow: lines into the User-agent: * stanza
where they are semantically effective.

Aligns the gallery canonical URL with Astro's trailing-slash static output
to resolve 27 "Alternative page with correct canonical tag" exclusions
reported in Google Search Console.
@Bissbert Bissbert merged commit 8513b5d into main May 18, 2026
3 of 4 checks passed
@github-actions
Copy link
Copy Markdown

🚀 Preview deployed to: https://b1b918a9.gemmology-dev.pages.dev

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