You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When used with Hugo version 0.132.0 or above, hugo command fails due to usage of deprecated function .Site.IsServer:
Start building sites …
hugo v0.132.0-005e895a386e59dd38418066b3280fd98a33c96b+extended windows/amd64 BuildDate=2024-08-12T15:21:36Z VendorInfo=gohugoio
ERROR deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.133.0. Use hugo.IsServer instead.
Total in 745 ms
Error: error building site: logged 1 error(s)
Could you update the theme to use the alternative function ?
I have only created this issue, I have not created a PR for it.
I noticed that you removed code containing .Site.IsServer in your PR to solve the issue.
Instead of removing the code, you could use the alternative function hugo.IsServer.
When used with Hugo version 0.132.0 or above, hugo command fails due to usage of deprecated function
.Site.IsServer
:Could you update the theme to use the alternative function ?
I've identified usages of deprecated function in baseof.html and google-analytics.html.
I can provide a PR if it is OK for you.
The text was updated successfully, but these errors were encountered: