Fix Lato webfont never loading; reorder Latin fallbacks before CJK#393
Merged
Conversation
The NexT font.enable flag was false, so Lato was in the CSS font stack but never fetched — visitors without it locally fell through to PingFang SC for all Latin text. - Add custom/head.njk to inject Google Fonts preconnects and a Lato stylesheet (weights 400, 700, 400-italic; skips unused 300/light and 700-italic that the theme's built-in loader would pull) - Wire it up via custom_file_path.head in _config.yml - Override $font-family-base and its derived variables in custom/variables.styl so Latin system fonts appear before CJK fonts in the fallback chain Also update package-lock.json to reflect the dependency state after a clean rebuild triggered during development of the above. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jaywonchung
approved these changes
May 18, 2026
Member
jaywonchung
left a comment
There was a problem hiding this comment.
I'm not really sure about this one (it's beyond my knowledge) but it locally renders fine so let's merge and find out
Aetf
pushed a commit
that referenced
this pull request
May 18, 2026
Member
Author
|
Website was rendering weirdly in my new laptop. Turns out it uses a font assuming I locally have it, which the new one didn't. Now I made Claude to pull it from Google fonts. Let's say it broke anything in the process or not |
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.
The NexT font.enable flag was false, so Lato was in the CSS font stack but never fetched — visitors without it locally fell through to PingFang SC for all Latin text.
Also update package-lock.json to reflect the dependency state after a clean rebuild triggered during development of the above.