Comments (9)
Same thing happened to me since v3.24
from hugo-theme-stack.
I don't know if it works for you, but after I tried to apply changes from this commit, and changed HUGO_VERSION: 0.123.8
in github\workflows\hugo.yml, it turns to work.
from hugo-theme-stack.
v0.123.8
This error should not appear if you are using Hugo version >= 0.123.0. Check the Hugo version you are using in CloudFlare Page building process.
from hugo-theme-stack.
I don't know if it works for you, but after I tried to apply changes from this commit, and changed
HUGO_VERSION: 0.123.8
in github\workflows\hugo.yml, it turns to work.
By default, GitHub action pulls the latest version of Hugo. Fixing a specific version is not recommended to do.
from hugo-theme-stack.
Thanks changing the hugo version to 0.123.0 made it work.
from hugo-theme-stack.
For cloudflare pages, just manually specify the HUGO_VERSION variable in your environments: 0.125.3
Current version number can be found here: https://community.chocolatey.org/packages/hugo
@CaiJimmy thanks for pointing this one out. It seems CFP uses an old outdated version of hugo out-of-the-box and you have to specify the new one if you want to get the latest version.
from hugo-theme-stack.
By default, GitHub action pulls the latest version of Hugo
I am sorry but the guide gives a fixed version: https://gohugo.io/hosting-and-deployment/hosting-on-github/#procedure at step 6.
from hugo-theme-stack.
last year it work, but I want to update my blog today, it show me that error.
Hugo version
v0.114.0
Theme version
v3.24.1
➜ myblog git:(main) ✗ hugo -version
WARN deprecated: --verbose was deprecated in Hugo v0.114.0 and will be removed in a future release. use --logLevel info
Start building sites …
hugo v0.120.4-f11bca5fec2ebb3a02727fb2a5cfb08da96fd9df+extended darwin/arm64 BuildDate=2023-11-08T11:18:07Z VendorInfo=brew
INFO copy static: syncing static files to /
INFO build: running step process duration 3.171375ms
INFO build: running step assemble duration 53.355208ms
INFO deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead.
ERROR render of "home" failed: "/Users/larry/Github/hugo/myblog/layouts/_default/baseof.html:4:12": execute of template failed: template: index.html:4:12: executing "index.html" at <partial "head/head.html" .>: error calling partial: "/Users/larry/Github/hugo/myblog/layouts/partials/head/head.html:15:4": execute of template failed: template: partials/head/head.html:15:4: executing "partials/head/head.html" at <partial "head/opengraph/include.html" .>: error calling partial: "/Users/larry/Github/hugo/myblog/themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html:1:3": execute of template failed: template: partials/head/opengraph/include.html:1:3: executing "partials/head/opengraph/include.html" at <partial "head/opengraph/provider/base" .>: error calling partial: "/Users/larry/Github/hugo/myblog/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html:35:20": execute of template failed: template: partials/head/opengraph/provider/base.html:35:20: executing "partials/head/opengraph/provider/base.html" at <.Site.Lastmod.IsZero>: can't evaluate field Lastmod in type page.Site
ERROR render of "term" failed: "/Users/larry/Github/hugo/myblog/layouts/_default/baseof.html:4:12": execute of template failed: template: _default/list.html:4:12: executing "_default/list.html" at <partial "head/head.html" .>: error calling partial: "/Users/larry/Github/hugo/myblog/layouts/partials/head/head.html:15:4": execute of template failed: template: partials/head/head.html:15:4: executing "partials/head/head.html" at <partial "head/opengraph/include.html" .>: error calling partial: "/Users/larry/Github/hugo/myblog/themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html:1:3": execute of template failed: template: partials/head/opengraph/include.html:1:3: executing "partials/head/opengraph/include.html" at <partial "head/opengraph/provider/base" .>: error calling partial: "/Users/larry/Github/hugo/myblog/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html:35:20": execute of template failed: template: partials/head/opengraph/provider/base.html:35:20: executing "partials/head/opengraph/provider/base.html" at <.Site.Lastmod.IsZero>: can't evaluate field Lastmod in type page.Site
INFO build: running step render duration 171.838708ms
INFO build: running step postProcess duration 169.208µs
Total in 253 ms
Error: error building site: render: failed to render pages: render of "home" failed: "/Users/larry/Github/hugo/myblog/layouts/_default/baseof.html:4:12": execute of template failed: template: index.html:4:12: executing "index.html" at <partial "head/head.html" .>: error calling partial: "/Users/larry/Github/hugo/myblog/layouts/partials/head/head.html:15:4": execute of template failed: template: partials/head/head.html:15:4: executing "partials/head/head.html" at <partial "head/opengraph/include.html" .>: error calling partial: "/Users/larry/Github/hugo/myblog/themes/hugo-theme-stack/layouts/partials/head/opengraph/include.html:1:3": execute of template failed: template: partials/head/opengraph/include.html:1:3: executing "partials/head/opengraph/include.html" at <partial "head/opengraph/provider/base" .>: error calling partial: "/Users/larry/Github/hugo/myblog/themes/hugo-theme-stack/layouts/partials/head/opengraph/provider/base.html:35:20": execute of template failed: template: partials/head/opengraph/provider/base.html:35:20: executing "partials/head/opengraph/provider/base.html" at <.Site.Lastmod.IsZero>: can't evaluate field Lastmod in type page.Site
➜ myblog git:(main) ✗
from hugo-theme-stack.
ok I fixed it by upgrading Hugo
➜ myblog git:(main) ✗ hugo version
hugo v0.126.1+extended darwin/arm64 BuildDate=2024-05-15T10:42:34Z VendorInfo=brew
➜ myblog git:(main) ✗ hugo server -D
Watching for changes in /Users/larry/Github/hugo/myblog/{archetypes,assets,content,data,i18n,layouts,static,themes}
Watching for config changes in /Users/larry/Github/hugo/myblog/config.yaml, /Users/larry/Github/hugo/myblog/themes/hugo-theme-stack/config.yaml
Start building sites …
hugo v0.126.1+extended darwin/arm64 BuildDate=2024-05-15T10:42:34Z VendorInfo=brew
WARN deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead.
| ZH-TW
-------------------+--------
Pages | 110
Paginator pages | 6
Non-page files | 67
Static files | 6
Processed images | 133
Aliases | 46
Cleaned | 0
Built in 15317 ms
Environment: "development"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
^C%
➜ myblog git:(main) ✗
from hugo-theme-stack.
Related Issues (20)
- The displayed title contains `#` HOT 6
- RSS lastBuildDate uses future (scheduled) post dates
- Why does the tutorial on the hugo website suggest to put it in the posts file, but this theme is in the posts folder? HOT 1
- Embedding large gifs doesn't get past the Build action HOT 1
- gitalk's proxy param not rendered HOT 1
- How to custom a multi-language params.sidebar.subtitle ? HOT 1
- Some math formulas can not be displayed HOT 5
- 主题实用的旧版本v2 Waline在更新到新版Waline V3后报错 HOT 1
- How to modify theme by using Hugo module? HOT 1
- Date format not showing correctly HOT 2
- Favicon not displaying HOT 4
- Language Switcher is present although the site is not multilingual on the latest Hugo HOT 2
- X-Content-Type-Options Header is not set. HOT 2
- Featured image of post 无法显示 HOT 3
- Rendering of section, taxonomy, term and site failed HOT 2
- site-avatar无法正常显示 HOT 2
- content/page/links.image 在非站点默认语言下无法加载本地图片 HOT 1
- Feature Request: Support GitInfo in LastModified HOT 4
- 文章底部【最后修改于】无法显示? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-stack.