我正在尝试构建我的Hugo网站,但是当我运行hugo check
时,我看到以下错误日志:
ERROR: 2017/09/10 Current theme does not support Hugo version 0.14. Minimum version required is 0.18
ERROR: 2017/09/10 template: theme/_default/baseof.html:2: function "default" not defined
ERROR: 2017/09/10 template: redefinition of template "main"
ERROR: 2017/09/10 template: theme/_default/single.html:7: function "humanize" not defined
ERROR: 2017/09/10 template: redefinition of template "main"
ERROR: 2017/09/10 template: theme/_default/terms.html:12: function "relLangURL" not defined
ERROR: 2017/09/10 template: theme/index.html:6: function "default" not defined
ERROR: 2017/09/10 template: theme/partials/menu-contextual.html:12: function "humanize" not defined
ERROR: 2017/09/10 template: theme/partials/page-header.html:9: function "default" not defined
ERROR: 2017/09/10 template: theme/partials/site-footer.html:4: function "now" not defined
ERROR: 2017/09/10 template: theme/partials/site-header.html:1: function "default" not defined
ERROR: 2017/09/10 template: theme/partials/social-follow.html:5: function "dict" not defined
ERROR: 2017/09/10 template: theme/partials/summary.html:3: function "humanize" not defined
ERROR: 2017/09/10 template: theme/post/single.html:11: function "humanize" not defined
ERROR: 2017/09/10 template: redefinition of template "main"
它说我需要Hugo 0.18版本,但是当我运行sudo apt-get install hugo
时,它告诉我:
hugo is already the newest version
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
我很困惑为什么会出现这个错误。有人遇到过这个错误吗?知道如何解决吗?
hugo env
的输出。此外,这似乎与您添加到问题中的任何标签都没有关系,除了hugo
标签。肯定不是 AWS 或 S3 标签相关的。 - Mark Bhugo env
不是一个支持命令。 - sgmmapt
安装了它,并尝试了upgrade
,但没有成功。我还下载了 tar 文件并解压缩了它,但不知道如何安装新版本的 Hugo。里面有一个名为hugo
的文件,但我不知道如何使用它。 - sgmm