Hugo 更新后出现错误的解决办法
Hugo 更新后有些配置项也随之变更,因此会出现一些错误,不过解决方法也简单,只需把相应的过时配置项更新即可,比如下面常见的 ERROR deprecated 。
要是出现“ ERROR deprecated: site config key paginate was deprecated in Hugo v0.128.0 and subsequently removed. Use pagination.pagerSize instead ”,则需要把 config.toml 中的 paginate 改为 pagerSize 。
要是出现“ ERROR deprecated: .Site.Author was deprecated in Hugo v0.124.0 and subsequently removed. Implement taxonomy ‘author’ or use .Site.Params.Author instead ”,则需要把 config.toml 中的 author 改为 params.author 。
『 转载请注明来源及链接 』