Mainroad icon indicating copy to clipboard operation
Mainroad copied to clipboard

Deprecated .Site.IsServer causing build WARNING

Open steven-geo opened this issue 8 months ago • 3 comments

Version v0.126.2

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

As I use hugo --panicOnWarning, this blocks all CICD deployments from running successfully.

layouts/_default/_baseof.html Line 38 needs to change from: {{- if not .Site.IsServer }} To: {{- if not hugo.IsServer }}

steven-geo avatar Jun 01 '24 10:06 steven-geo