Felix Nie
2025-03-19 25979ab216ca2cc2539696420f23be8508d3184f
refs
author Felix Nie <hongtuo.nie@u.nus.edu>
Wednesday, March 19, 2025 04:43 +0000
committer GitHub <noreply@github.com>
Wednesday, March 19, 2025 04:43 +0000
commit25979ab216ca2cc2539696420f23be8508d3184f
tree a2b09af724d315c0442993074fbc55fd7d484d1b tree | zip | gz
parent 9818e1ad5788906162fca5e62665ac21ef0d9639 view | diff
feat(fonts): allow PageTitle to have its own font subset (#1848)

* fix(explorer): vertically center the Explorer toggle under mobile view

* Added a separate title font configuration

* Added googleSubFontHref function

* Applied --titleFont to PageTitle

* Made googleFontHref return array of URLs

* Dealing with empty and undefined title

* Minor update

* Dealing with empty and undefined title

* Refined font inclusion logic

* Adopted the googleFontHref + googleFontSubsetHref method

* Adaptively include font subset for PageTitle

* Restored default config

* Minor changes on configuration docs

* Formatted source code
5 files modified
49 ■■■■ changed files
docs/configuration.md 9 ●●●●● diff | view | raw | blame | history
quartz/components/Head.tsx 5 ●●●● diff | view | raw | blame | history
quartz/components/PageTitle.tsx 1 ●●●● diff | view | raw | blame | history
quartz/plugins/emitters/componentResources.ts 16 ●●●● diff | view | raw | blame | history
quartz/util/theme.ts 18 ●●●● diff | view | raw | blame | history