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.**

View File

@ -257,6 +257,17 @@
<li>是否需要加密特定文章?</li>
</ul>
<p><strong>以上的功能和需求是否对SEO和界面相应时间造成影响</strong></p>
<h2 id="xiao-ji">小记</h2>
<p>由于我所使用的平台不支持zola因此我直接在本地编译public并推送这样时间久了.git文件夹大小会非常大记录public的变化我又不想将zola的二进制包放入目录下因此有了这个办法</p>
<pre style="background-color:#151515;color:#e8e8d3;"><code><span># 安装git-filter-repo工具
</span><span>paru git-filter-repo
</span><span># 清理public相关的历史
</span><span>git clone git@github.com:Dichgrem/Blog.git blog1 &amp;&amp; cd blog1
</span><span>git filter-repo --path public --invert-paths
</span><span>git gc --aggressive --prune=now
</span><span># 重新推送到github
</span><span>git push --force --mirror
</span></code></pre>
<h2 id="link">🔗</h2>
<ul>
<li><a href="https://gohugo.io/documentation/">Hugo官方文档</a></li>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
{"version":"1.3.0","languages":{"en":{"hash":"en_757c45eb84","wasm":"en","page_count":103}}}
{"version":"1.3.0","languages":{"en":{"hash":"en_fdbcd61549","wasm":"en","page_count":103}}}

Binary file not shown.