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

.Site.IsServer was deprecated #501

Closed
hugo-mcfrojd opened this issue Jul 5, 2024 · 3 comments
Closed

.Site.IsServer was deprecated #501

hugo-mcfrojd opened this issue Jul 5, 2024 · 3 comments

Comments

@hugo-mcfrojd
Copy link

Im using your theme as a git submodule.

When i render the website Hugo says:
"deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead."

The only place i can find the use of ".Site.IsServer" is in your theme in "layouts/partials/head.html" where line 100 says
{{- if not .Site.IsServer -}}

Do you have plans to to change this deprecated code to the new one?

I am not tech savvy enough to make a pull request.

@hydr0nium
Copy link
Contributor

@hugo-mcfrojd There doesn't seem to be much activity on the pull requests. Despite that I can put up a pull request in the next couple of days with a fix for that 😄

@hydr0nium
Copy link
Contributor

I just put up a pull request that fixes that issues #502

@henryiii
Copy link
Collaborator

I can merge stuff if poked enough. :)

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

No branches or pull requests

3 participants