在旧版本的
even中,客制化后需要在目录下使用yarn来构建才能生效。而在新版本中,even团队放弃了使用webpack转而使用用户相对友好的Hugo Pipes来处理资源文件,相应的,在新版本中便不需要使用yarn来构建了。不过在新版本中,要客制化主题使其能够生效,需要
否则将不会发生任何改变。
例如我想要将
even原本默认的Mint Green修改为Cobalt Blue,只需修改
\themes\even\assets\sass路径下的_variables.scss文件,然后再在网页主目录下使用hugo命令即可构建成功
参考:
Why build section is removed from Readme?
chore(build): drop webpack and use Hugo Pipes
I get "TOCSS ... this feature is not available in your current Hugo version"
原文:https://www.cnblogs.com/Jaywhen-xiang/p/12829058.html