Skip to content

Commit 99475fc

Browse files
committed
docs+css: fix stale README Fuse refs and unused --shadow-code variable
1 parent 596c997 commit 99475fc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| Hugo | extended `0.165.0` |
1414
| 主题 | PaperMod(git submodule 引入) |
1515
| 部署 | GitHub Actions → GitHub Pages |
16-
| 搜索 | Fuse.js + 自定义摘要片段 |
16+
| 搜索 | Pagefind(构建后自动索引;CJK 分词 + 小节锚点直达) |
1717

1818
## 本地预览
1919

@@ -77,8 +77,7 @@ hugo new posts/my-new-post.md
7777
| `content/posts/*.md` | 博客文章 |
7878
| `content/about.md` | 关于页 |
7979
| `content/archives.md` | 归档页 |
80-
| `content/search.md` | 站内搜索页 |
81-
| `assets/js/fastsearch.js` | 搜索脚本(Fuse.js + 摘要片段) |
80+
| `content/search.md` | 旧站内搜索页(现为跳转占位,导入 /archives/) |
8281
| `assets/css/extended/` | 自定义扩展样式 |
8382
| `static/img/` | 静态图片(头像、头图等) |
8483
| `themes/PaperMod/` | 主题(submodule,主题升级时拉取) |

‎assets/css/extended/pagefind.css‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
--pf-skeleton: var(--code-bg);
2525
--pf-outline-focus: var(--secondary);
2626
--pf-shadow-sm: none;
27-
--pf-shadow-md: var(--shadow-code);
27+
--pf-shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
2828
--pf-font: inherit;
2929

3030
--pf-input-height: 40px;
@@ -42,12 +42,14 @@
4242
/* ---- Token bridge: dark (explicit) ---- */
4343
html[data-theme="dark"] #pagefind-search {
4444
--pf-background: var(--theme);
45+
--pf-shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
4546
}
4647

4748
/* ---- Token bridge: dark (auto + system pref) ---- */
4849
@media (prefers-color-scheme: dark) {
4950
html[data-theme="auto"] #pagefind-search {
5051
--pf-background: var(--theme);
52+
--pf-shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
5153
}
5254
}
5355

0 commit comments

Comments
 (0)