2017-09-10 65 views
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. 

所以我很困惑,为什么我得到的错误。有没有人遇到这个错误?知道如何解决它?

+0

请在你的问题中包含运行'hugo env'的输出。另外,除了'hugo',这似乎与你添加到你的问题中的任何标签都没有关系。当然不是AWS或S3标签。 –

+0

我忘了提及我在EC2上运行这个实例并在S3上部署网站。这就是为什么那些标签在那里。另外它似乎并不像'hugo env'是一个支持命令。 –

+0

这似乎仍然与您遇到的实际问题无关。你似乎正在运行Hugo 0.14,这是一个旧版本,'upgrade'命令似乎不起作用。我建议去这里下载最新版本并手动安装https://github.com/gohugoio/hugo/releases –

回答

1

如果您没有使用apt获取最新版本的Hugo,那么您应该尝试直接从Github repository下载它。点击最新版本(或者您需要的版本)。进入发布页面后,向下滚动到下载部分,然后通过单击该部分或使用wget下载压缩文件来下载该文件。然后提取文件并运行./hugo version以确认版本。

相关问题