1
我试图建立自己的网站雨果但是当我运行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"
它说,我需要雨果版本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标签。 –
我忘了提及我在EC2上运行这个实例并在S3上部署网站。这就是为什么那些标签在那里。另外它似乎并不像'hugo env'是一个支持命令。 –
这似乎仍然与您遇到的实际问题无关。你似乎正在运行Hugo 0.14,这是一个旧版本,'upgrade'命令似乎不起作用。我建议去这里下载最新版本并手动安装https://github.com/gohugoio/hugo/releases –