fix(site): subset the web fonts and give link previews a proper card - #220
Merged
Merged
Conversation
- Fonts: the six self-hosted woff2 files (476 KB) are subset to the 235 code points the generated pages use, plus Latin-1 and general punctuation: 156 KB. Every used character the original covered is still covered; only ccmp/cv14/cv99, which apply to dropped glyphs, go. - Link previews: the landing page and gallery index used a 1280x720 webp hero with no size or alt. They now use assets/og-card.jpg (1200x630, 59 KB), and every page carries og:image:width/height/alt, twitter:image:alt and og:site_name. Closes #216 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>
8 tasks
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
Closes #216: the two weight and link-preview items from the Pages review.
Type
featfix— site weight and metadatadocs/chore/ci/refactorChanges
Fonts (
scripts/site/fonts/) are subset to the 235 code points the 82 generated pages actually use, plus Latin-1 and General Punctuation, with all OpenType layout features kept. That set includes the README maths:Σ π φ ᵢ ≤ ≥ ≈ ≠ √ ∈ ∪ → ↔ ▾.A character outside the set falls back to the next family in the stack. The re-subset recipe is in a comment on the
@font-faceblock.Link previews:
assets/og-card.jpg: 1200×630, 59 KB, a 2×2 of the four top-featured renders.site.json) and gallery index use the card withog:image:width/height/altandtwitter:image:alt.og:site_name.Evidence
ccmp,cv14(Inter) andcv99(JetBrains Mono) dropped out; they apply only to removed glyphs, and the site sets nofont-feature-settings./gallery/armature-bend/,document.fontsloads Barlow Condensed 600, Inter 400/500 and JetBrains Mono 400.document.fonts.check()is true forΣ wᵢ ≤ ≥ → —(Inter) andΣ ≤ ≥ →(JetBrains Mono). A screenshot of the LBS formula row renders correctly.docs/index.html,docs/gallery/index.htmlanddocs/gallery/cart/index.htmlcarry the new tags. Values checked: 1200/630 plus alt for the card; 1280/720 plus alt for the detail hero.<head>only.Checklist
Signed-off-by:present.🤖 Generated with Claude Code