update:blog

This commit is contained in:
Dich
2025-06-18 21:26:58 +08:00
parent a3f9d12e8d
commit 76ce51bd5b
17 changed files with 29 additions and 2 deletions

View File

@ -132,6 +132,22 @@ hugo server -D
**以上的功能和需求是否对SEO和界面相应时间造成影响**
## 小记
由于我所使用的平台不支持zola因此我直接在本地编译public并推送这样时间久了.git文件夹大小会非常大记录public的变化我又不想将zola的二进制包放入目录下因此有了这个办法
```
# 安装git-filter-repo工具
paru git-filter-repo
# 清理public相关的历史
git clone git@github.com:Dichgrem/Blog.git blog1 && cd blog1
git filter-repo --path public --invert-paths
git gc --aggressive --prune=now
# 重新推送到github
git push --force --mirror
```
## 🔗
- [Hugo官方文档](https://gohugo.io/documentation/)
- [zola官方文档](https://www.getzola.org/documentation/getting-started/overview/)
@ -140,4 +156,4 @@ hugo server -D
- [如何提高用户网页阅读体验](https://atpx.com/blog/improving-online-reading-experience/)
---
**Done.**
**Done.**