Upon running
hugo --panicOnWarning
I get:
.Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct similar to the one below:
{{ $path := “” }}
{{ with .File }}
{{ $path = .Path }}
{{ else }}
{{ $path = .Path }}
{{ end }}
Error: Error building site: failed to render pages: render of “page” failed: execute of template failed: template: publication/single.html:4:3: executing “publication/single.html” at <partial “site_head.html” .>: error calling partial: “xxxx/themes/academic/layouts/partials/site_head.html:17:51”: execute of template failed: template: partials/site_head.html:17:51: executing “partials/site_head.html” at <.Path>: error calling Path: Warning trapped. Remove the --panicOnWarning flag to continue.
How do I fix that?