mivinci / hugo-theme-minima

A clean and minimal Hugo theme.
https://mivinci.github.io/hugo-theme-minima
MIT License
132 stars 37 forks source link

Build failed with cloudflare page #21

Closed qaqland closed 2 years ago

qaqland commented 2 years ago
17:59:13.430    Initializing build environment. This may take up to a few minutes to complete
17:59:15.627    Success: Finished initializing build environment
17:59:15.627    Cloning repository...
17:59:18.067    Success: Finished cloning repository files
17:59:18.362    Installing dependencies
17:59:18.375    Python version set to 2.7
17:59:22.378    v12.18.0 is already installed.
17:59:23.811    Now using node v12.18.0 (npm v6.14.4)
17:59:24.165    Started restoring cached build plugins
17:59:24.182    Finished restoring cached build plugins
17:59:24.920    Attempting ruby version 2.7.1, read from environment
17:59:30.989    Using ruby version 2.7.1
17:59:31.367    Using PHP version 5.6
17:59:31.542    5.2 is already installed.
17:59:31.573    Using Swift version 5.2
17:59:31.573    Installing Hugo 0.54.0
17:59:32.624    Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
17:59:32.629    Started restoring cached go cache
17:59:32.652    Finished restoring cached go cache
17:59:32.819    go version go1.14.4 linux/amd64
17:59:32.841    go version go1.14.4 linux/amd64
17:59:32.845    Installing missing commands
17:59:32.845    Verify run directory
17:59:32.846    Executing user command: hugo
17:59:32.937    Building sites … ERROR 2022/04/10 09:59:32 render of "page" failed: execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/buildhome/repo/themes/minima/layouts/partials/head.html:28:41": execute of template failed: template: partials/head.html:28:41: executing "partials/head.html" at <js>: can't evaluate field Build in type string
17:59:32.937    ERROR 2022/04/10 09:59:32 render of "page" failed: execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/buildhome/repo/themes/minima/layouts/partials/head.html:28:41": execute of template failed: template: partials/head.html:28:41: executing "partials/head.html" at <js>: can't evaluate field Build in type string
17:59:32.937    ERROR 2022/04/10 09:59:32 render of "page" failed: execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/buildhome/repo/themes/minima/layouts/partials/head.html:28:41": execute of template failed: template: partials/head.html:28:41: executing "partials/head.html" at <js>: can't evaluate field Build in type string
17:59:32.937    ERROR 2022/04/10 09:59:32 render of "page" failed: execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/buildhome/repo/themes/minima/layouts/partials/head.html:28:41": execute of template failed: template: partials/head.html:28:41: executing "partials/head.html" at <js>: can't evaluate field Build in type string
17:59:32.937    Total in 28 ms
17:59:32.937    Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "head.html" ...>: error calling partial: "/opt/buildhome/repo/themes/minima/layouts/partials/head.html:28:41": execute of template failed: template: partials/head.html:28:41: executing "partials/head.html" at <js>: can't evaluate field Build in type string
17:59:32.949    Failed: build command exited with code: 255

maybe there is something wrong :(

qaqland commented 2 years ago

加油 XJJ

mivinci commented 2 years ago

Have you tried the latest version of Hugo-extended?

qaqland commented 2 years ago

On my locals, the lastest version(0.93.2) works.

I find the solution for cloudflare page

Hugo builds automatically run an old version. To run the latest version of Hugo (for example, 0.80.0), you will need to set an environment variable. Set HUGO_VERSION to 0.80.0 or the Hugo version of your choice.

It works well.

话说讲英语感觉好怪啊 XD

mivinci commented 2 years ago

好的 你也是凑弟弟吗 😎

qaqland commented 2 years ago

QAQ 听不懂了