mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-07-31 00:59:31 -04:00
update:blog
This commit is contained in:
@ -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.**
|
||||
|
@ -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 && 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.
BIN
public/pagefind/fragment/en_bd5aed9.pf_fragment
Normal file
BIN
public/pagefind/fragment/en_bd5aed9.pf_fragment
Normal file
Binary file not shown.
BIN
public/pagefind/index/en_107ff77.pf_index
Normal file
BIN
public/pagefind/index/en_107ff77.pf_index
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_1d4574b.pf_index
Normal file
BIN
public/pagefind/index/en_1d4574b.pf_index
Normal file
Binary file not shown.
BIN
public/pagefind/index/en_43efa7a.pf_index
Normal file
BIN
public/pagefind/index/en_43efa7a.pf_index
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_7eb6573.pf_index
Normal file
BIN
public/pagefind/index/en_7eb6573.pf_index
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_e3c7c32.pf_index
Normal file
BIN
public/pagefind/index/en_e3c7c32.pf_index
Normal file
Binary file not shown.
@ -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.
BIN
public/pagefind/pagefind.en_fdbcd61549.pf_meta
Normal file
BIN
public/pagefind/pagefind.en_fdbcd61549.pf_meta
Normal file
Binary file not shown.
Reference in New Issue
Block a user