Skip to content
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

Update hugo-xmin version to newer Hugo #325

Open
cderv opened this issue Nov 25, 2024 · 0 comments
Open

Update hugo-xmin version to newer Hugo #325

cderv opened this issue Nov 25, 2024 · 0 comments

Comments

@cderv
Copy link
Collaborator

cderv commented Nov 25, 2024

Start building sites … 
hugo v0.139.2-770f548b47b39e6f0fd4da1cc80552024e5829e1+extended windows/amd64 BuildDate=2024-11-23T15:33:51Z VendorInfo=gohugoio

ERROR deprecated: .Site.LastChange was deprecated in Hugo v0.123.0 and will be removed in Hugo 0.140.0. Use .Site.Lastmod instead.
Total in 1212 ms
Error: error building site: render: failed to render pages: render of "home" failed: "C:\Users\chris\Documents\DEV_R\bookdown.org\themes\hugo-xmin\layouts\_default\list.html:27:90": execute of template failed: template: _default/list.html:27:90: executing "_default/list.html" at <$.Site.IsServer>: can't evaluate field IsServer in type page.Site
[1] 1

This is also related to this change I get with previous version

WARN deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead.

As it seems to have been removed now leading to error

executing "_default/list.html" at <$.Site.IsServer>: can't evaluate field IsServer in type page.Site

FWIW it has been removed in 1.37

ERROR deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.137.0. Use hugo.IsServer instead.
ERROR deprecated: .Site.LastChange was deprecated in Hugo v0.123.0 and will be removed in Hugo 0.137.0. Use .Site.Lastmod instead.

We are currently building with 0.131.0 so that we have a version without ERROR on those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant