fix(seo): valid robots.txt syntax and trailing-slash gallery canonical#42
Merged
Conversation
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.
|
🚀 Preview deployed to: https://b1b918a9.gemmology-dev.pages.dev |
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.
Summary
LLM-Content:directive fromrobots.txt(Lighthouse SEO audit flagged it as a parse error); the/llms.txtdiscovery path remains advertised via a comment block per the llmstxt.org spec.Allow: /crystals/,Allow: /og-images/,Allow: /favicon.svglines into theUser-agent: *stanza where they are semantically effective.https://gemmology.dev/gallerytohttps://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 buildcompletes with 916 pages, 0 errors — PASSdist/robots.txtmirrorspublic/robots.txt; noLLM-Content:line presentdist/gallery/index.html<link rel="canonical">contains the trailing-slash URL