lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
657 stars 362 forks source link

Warning about unsupported asynchronous Google Analytics #493

Closed McPringle closed 6 months ago

McPringle commented 7 months ago

Describe the bug When Hugo v0.123.0-3c8a4713908e48e6523f058ca126710397aa4ed5+extended renders my website using Anatole theme v1.13.0 I get the following warning:

WARN  _internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo

To Reproduce Steps to reproduce the behavior:

  1. Create a new hugo project: hugo new site mytest
  2. Enter newly created project: cd mytest
  3. Make hugo project a module: hugo mod init mytest
  4. Add Anatole theme as a module: hugo mod get github.com/lxndrblz/anatole
  5. Add the following lines at the end of hugo.toml:
    [module]
    [[module.imports]]
    path = "github.com/lxndrblz/anatole"
    disable = false
  6. Create a new post: hugo new post/mytest.md
  7. Start Hugo server: hugo server
  8. A warning is shown on the console: WARN _internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo

Expected behavior Hugo should start the server using the Anatole theme with default settings without warnings.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context