Repository navigation
Help search engines and link previews find the website - #186
Merged
Merged
Conversation
Add robots.txt with a sitemap of both languages, an x-default hreflang, Open Graph site name and locales, X image alt text, SoftwareApplication structured data and a root favicon.ico. Shorten the English description to fit search results. Mark the pages.dev mirror noindex and cache hashed assets for a year through Cloudflare Pages headers; the not-found page now links its stylesheet with a hash too.
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.
Refs #160. Website-only change; nothing in the app.
site/robots.txt(allow all, sitemap) andsite/sitemap.xml(both pages with hreflang alternates). Until now the site had no robots rules of its own and no sitemap.hreflang="x-default"→ English,og:site_name,og:locale/og:locale:alternate,twitter:image:alt,SoftwareApplicationJSON-LD (free, macOS 14+, Apple silicon, download URL, MIT licence, GitHub), and/favicon.ico(16/32/48) for crawlers that only look at the root.site/_headersfor Cloudflare Pages:X-Robots-Tag: noindexon theaskkey.pages.devmirror (the custom domain stays the only indexed host); one-year immutable cache for the hashed CSS/JS and fonts, one week for pictures.404.htmlnow links its stylesheet with a content hash as well (added tostamp.mjs).site-src/README.md: a short note on these files.Checks:
python3 scripts/check_hygiene.pypassed; both JSON-LD blocks parse;sitemap.xmlis well-formed.