Skip to content

Conversation

@caspermeijn
Copy link
Contributor

Hugo v0.120 deprecated both:

  • .Site.IsServer which is replaced by hugo.IsServer
  • .Site.GoogleAnalytics which is replaced by Site.Config.Services.GoogleAnalytics.ID

It seems template google_analytics.html checks for an ID itself, so we can remove the check.

This change increases the minimum version to hugo v0.120 released on Oct 30, 2023.

Tested with hugo v0.132.1-1bde700dfc0770bb11eb8445aff1ab5abdccb46e+extended

Hugo v0.120 deprecated both:
- .Site.IsServer which is replaced by hugo.IsServer
- .Site.GoogleAnalytics which is replaced by Site.Config.Services.GoogleAnalytics.ID

It seems template `google_analytics.html` checks for an ID itself, so we can remove the check.

This change increases the minimum version to hugo v0.120 released on Oct 30, 2023.

Tested with hugo v0.132.1-1bde700dfc0770bb11eb8445aff1ab5abdccb46e+extended
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

Successfully merging this pull request may close these issues.

1 participant