Hello folks,
With 0.167 I’m seeing this new error:
WARN deprecated: .Page.IsNode was deprecated in Hugo v0.163.0 and will be removed in a future release. Use .Page.IsBranch or not .Page.IsPage instead.
… it looks like it’s using jsonify in a footer template that’s causing it. Because I’m not directly using IsNode, I can’t fix this. Is it a bug?
execute of template failed: template: _partials/footer.html:89:11: executing "_partials/footer.html" at <jsonify (dict "indent" " ")>: error calling jsonify: .Page.IsNode was deprecated in Hugo v0.163.0 and will be removed in a future release. Use .Page.IsBranch or not .Page.IsPage instead.
and the end of the template:
{{ if hugo.IsServer }}
<div class="p-4 font-mono text-xs">
{{ range slice
(dict "label" "Page kind" "data" .Kind)
(dict "label" "Page params" "data" .Params)
(dict "label" "Ancestors" "data" .Ancestors)
(dict "label" "Page resources" "data" .Resources)
}}
<details class="my-2 rounded border border-gray-300">
<summary
class="cursor-pointer bg-gray-100 px-3 py-1 font-semibold selec t-none hover:bg-gray-200"
>
{{ .label }}
</summary>
<pre class="overflow-x-auto p-3 text-xs leading-relaxed">
{{ .data | jsonify (dict "indent" " ") }}</pre
>
</details>
{{ end }}
</div>
{{ end }}
Many thanks ![]()