Code Monkey home page Code Monkey logo

Comments (9)

DeepseaXX avatar DeepseaXX commented on September 27, 2024

Same thing happened to me since v3.24

from hugo-theme-stack.

DeepseaXX avatar DeepseaXX commented on September 27, 2024

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.

CaiJimmy avatar CaiJimmy commented on September 27, 2024

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.

CaiJimmy avatar CaiJimmy commented on September 27, 2024

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.

wagtale avatar wagtale commented on September 27, 2024

Thanks changing the hugo version to 0.123.0 made it work.

from hugo-theme-stack.

lkaupp avatar lkaupp commented on September 27, 2024

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.

anemele avatar anemele commented on September 27, 2024

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.

wastu01 avatar wastu01 commented on September 27, 2024

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.

wastu01 avatar wastu01 commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.