File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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,主题升级时拉取) |
Original file line number Diff line number Diff line change 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 4 px 12 px rgba ( 0 , 0 , 0 , .1 ) ;
2828 --pf-font : inherit;
2929
3030 --pf-input-height : 40px ;
4242/* ---- Token bridge: dark (explicit) ---- */
4343html [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
You can’t perform that action at this time.
0 commit comments