Skip to content

Help search engines and link previews find the website - #186

Merged
sudoHG merged 1 commit into
mainfrom
website-seo
Oct 13, 2026
Merged

sudoHG merged 1 commit into
mainfrom
website-seo

Conversation

@sudoHG

@sudoHG sudoHG commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Refs #160. Website-only change; nothing in the app.

  • site/robots.txt (allow all, sitemap) and site/sitemap.xml (both pages with hreflang alternates). Until now the site had no robots rules of its own and no sitemap.
  • Both pages: hreflang="x-default" → English, og:site_name, og:locale / og:locale:alternate, twitter:image:alt, SoftwareApplication JSON-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.
  • English meta description shortened from 245 to 159 characters so search results show it whole.
  • site/_headers for Cloudflare Pages: X-Robots-Tag: noindex on the askkey.pages.dev mirror (the custom domain stays the only indexed host); one-year immutable cache for the hashed CSS/JS and fonts, one week for pictures. 404.html now links its stylesheet with a content hash as well (added to stamp.mjs).
  • site-src/README.md: a short note on these files.

Checks: python3 scripts/check_hygiene.py passed; both JSON-LD blocks parse; sitemap.xml is well-formed.

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.
@sudoHG
sudoHG merged commit 019e0dd into main Oct 13, 2026
2 checks passed
@sudoHG
sudoHG deleted the website-seo branch October 13, 2026 12:02
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