Mainroad
Mainroad copied to clipboard
Deprecated .Site.IsServer causing build WARNING
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 }}