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

Manage deprecated site.IsServer #21

Closed
ghk-arolla opened this issue Feb 16, 2024 · 2 comments
Closed

Manage deprecated site.IsServer #21

ghk-arolla opened this issue Feb 16, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ghk-arolla
Copy link
Collaborator

site.IsServer needs to be replaced by hugo.IsServer, but this new function works only starting with hugo v0.120.0.

So it is too violent and too soon to do it now.

@ghk-arolla ghk-arolla added the enhancement New feature or request label Feb 16, 2024
@ghk-arolla ghk-arolla self-assigned this Feb 16, 2024
@ghk-arolla
Copy link
Collaborator Author

Should use

{{- if lt hugo.Version "0.120.0" }}
... site.IsServer
{{- else }}
... hugo.IsServer 
{{-end }}

@ghk-arolla
Copy link
Collaborator Author

Done in v1.20.0

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

No branches or pull requests

1 participant