feat(search): 引入拼音搜索

* add pinyin search

* style(highlight): keep theme-aware background

- restore theme-aware .highlight with --highlight-bg

- add highlight vars for light/dark

chore: load pinyin lib before script.js

- ensure pinyin-match.js loads before script.js to avoid runtime dependency issues

docs: add third-party notice for pinyin-match

- add placeholder notice; replace with upstream license after verification

---------

Co-authored-by: neo <neo@example.com>
Co-authored-by: Maintainer (PR Edit) <maintainer@local>
This commit is contained in:
nsnans
2025-10-14 03:49:17 +08:00
committed by GitHub
parent e5fc71aee8
commit 338d0304d1
6 changed files with 29 additions and 1 deletions

1
assets/pinyin-match.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -157,6 +157,7 @@ html {
color: var(--text-color);
}
body {
font-family: var(--font-body);
font-weight: var(--font-weight-body);