更新使用 install_hugo() 安装的 Hugo 学术主题的最佳实践

Best practice for updating Hugo academic theme installed with install_hugo()

因为我没有使用 git clone 用 R blogdown 安装 Hugo academic 主题,并且因为我使用自己的 git 存储库来管理整个 blogdown目录结构(包括 theme) 使用 git 更新讨论的学术主题似乎很复杂 here。在现有 R blogdown 结构上更新学术主题的最佳方法是什么?

我个人建议 不要 更新 Hugo 主题,除非你 运行 遇到主题错误或看到新版本主题中的新功能,你真的需要。如果您更新主题,会发生什么是不可预测的。也就是说,我使用 git 子模块来管理 Hugo 主题 myself (and I don't update the submodule unless I really need a newer version). There is more information about this in the Appendix D.7 of the blogdown book