I’ve been Hugo for a while now to build my website and have been loving it. I recently wrote a new post and realized that my deployed failed with the following error:
hugo server --watch # -D Start building sites … WARN 2021/10/01 21:22:37 Current environment is "development". The "comment system", "CDN" and "fingerprint" will be disabled. 当前运行环境是 "development". "评论系统", "CDN" 和 "fingerprint" 不会启用. WARN 2021/10/01 21:22:37 Page.URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url Built in 1018 ms Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:18:90: executing "cont ent" at <partial "function/content.html">: error calling partial: "/home/ghilston/Git/GregHilston/greghilston/themes/uBlogger/layouts/partials/function/conten t.html:12:15": execute of template failed: template: partials/function/content.html:12:15: executing "partials/function/content.html" at <partial "function/ch eckbox.html" $content>: error calling partial: partial that returns a value needs a non-zero argument.
I’m using the uBlogger theme, which has been a very pleasant theme to work with.
What I expect to happen is the site build without any issue, as I seemingly have only written a new blog post and also lately updated uBlogger to the latest commit.
I searched on the forums and found this post, but this does not seem to be related…Additionally, I’ve read that this error can be caused by using
.webp images, which I’ve converted to
.png files or
Happy to provide any additional information or answer any questions.