hugo主页

https://gohugo.io/

hugo编辑器

https://gohugo.io/tools/editors/

开源MARKDOWN编辑器ATOM

GitHub

https://github.com/atom/atom

下载地址

https://github.com/atom/atom/releases/tag/v1.37.0

hugofy

https://atom.io/packages/hugofy

ubuntu 下安装 hugo的坑

正常在 ubuntu下安装通过:

sudo apt-get install hugo

但是很遗憾的是,这样安装只能到 hugo 的 0.4.0 版本,一些主题对版本要求比较高,这个时候就会出现问题,那怎么安装更高的版本呢?

通过强大的搜索引擎在 stackoverflow 上看到有人遇到了同样的问题:

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 卸载,然后通过:

sudo snap install hugo

进行安装

具体可以查看:https://stackoverflow.com/questions/46146268/hugo-error-current-theme-does-not-support-current-version