yuan jddφθτ (@yjdyamv)hugo mod 代理设置 中发帖

在谈论标题前先说说hugo主题的安装,以blowfish为例 

使用git submodulegit submodule add -b main https://github.com/nunocoracao/blowfish.git themes/blowfish


优点:

可以及时使用最新的版本,因为细粒度精确到了commit
较通用,某些主题可能不提供hugo mod


缺点:

git submodule init --init --recursive在网络不好的时候下载和更新比较折磨,及其缓慢 我开了代理也挺慢的,不知什么缘故




使用hugo mod(依赖go mod,需提前安装go)
在config/_default/module.toml里声明以下内容即可[[imports]]
disable = false
path = "github.com/nunocor...