Skip to content

Update hugo-xmin version to newer Hugo #325

Open
@cderv

Description

@cderv
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions