-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hugo server时遇到问题 #1
Comments
请参考 https://github.com/CaiJimmy/hugo-theme-stack/blob/master/exampleSite/config.toml |
emm...好像还是会报这个错,顺便问下,根目录的 |
hugo version为 Hugo Static Site Generator v0.68.3/extended linux/amd64 BuildDate: 2020-03-25T06:15:45Z hugo server -D为 Building sites … WARN 2020/09/06 10:20:23 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/09/06 10:20:23 found no layout file for "HTML" for kind "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2020/09/06 10:20:23 found no layout file for "HTML" for kind "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
ERROR 2020/09/06 10:20:23 render of "home" failed: execute of template failed: template: index.html:4:7: executing "main" at <partialCached "sidebar/left.html" .>: error calling partialCached: "/home/linhk/文档/oi.lhkstudio.me/themes/stack/layouts/partials/sidebar/left.html:12:44": execute of template failed: template: partials/sidebar/left.html:12:44: executing "partials/sidebar/left.html" at <$avatar.Resize>: nil pointer evaluating resource.Resource.Resize
Total in 34 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:4:7: executing "main" at <partial "sidebar/left.html" .>: error calling partial: "/home/linhk/文档/oi.lhkstudio.me/themes/stack/layouts/partials/sidebar/left.html:12:44": execute of template failed: template: partials/sidebar/left.html:12:44: executing "partials/sidebar/left.html" at <$avatar.Resize>: nil pointer evaluating resource.Resource.Resize |
主题要求 Hugo 最低版本为 0.74:https://github.com/CaiJimmy/hugo-theme-stack#requirements 你指出的报错不是 Bug,是因为 通过该文件夹编译出的站点:https://hugo-theme-stack.netlify.app/ |
哦,感谢大佬指点,那么现在的问题就是,我的ubuntu20.04的软件源下到hugo的最新版本就是0.68.3,我得想法去换个源 |
Snap 有最新版本:https://snapcraft.io/hugo 或者可以直接去 Hugo 的 Release 页面下载编译好的文件 |
谢谢,最近因为开学了有点忙,所以没有来得及测试,现在已经解决了😁 |
我Clone了这个主题以后,
hugo server
遇到了如下的问题,而换用hugo
默认主题ananke
则成功部署,请问我应该怎么解决根目录下的
config.toml
为The text was updated successfully, but these errors were encountered: