Warn for using for .Site.Data after updating Hugo to 0.156

After updating to Hugo 0.159 I got a warning as follows:

.Site.Data was deprecated in Hugo v0.156.0 and will be removed in a future release. Use hugo.Data instead.

Is there a simple way to find all places and all files where .Site.Data are used and to replace it by hugo.Data (instead of reviewing file by file) ?

scan your layouts folder recursive for site.data ignoring case.

exact way depends on your environment

  • your editor may support folder search
  • shell commands like grep or select-string
  • specialized search tools

if you mount things don’t forget to scan these folders, too.

nu urge…will take some time. so I would ignore that for external components for now.

maybe target those when the info turns into warning

Thanks a lot.

I scan all folders within the VsCodium editor and correct all occurrences.

No more warning so far