Open Japanuspus opened 1 year ago
I have previously contributed fixes to Hugo, but I am no golang expert and do not know enough about reflection/introspection in golang to offer any help on this.
As a casual Hugo user, the listing of properties has been a great help in learning how to use the template system. If the previous functionality cannot easily be reestablished, it would be of great value if someone knowledgeable about golang could update the linked documentation to show how to inspect the wrapped objects.
Still broken in hugo v0.120.1-16fb2cae88eb6add7d12e9fbfcf01d8670e60a35 . The output of {{ printf "%#v" $.Site }} is: &page.siteWrapper{s:(*hugolib.Site)(0xc00071d8c0)}
Still broken in hugo v0.120.1
Right. That's why the issue is still open.
The documentation on "template debugging" describes a simple way to render all
Site
context variables viaAs of v0.118.2, using this approach gives the output:
instead of the expected listing of
$.Site
-properties.The regression appears to caused by introducing an indirection via the
siteWrapper
-object (introduced in 241b21b0fd34d91fccb2ce69874110dceae6f926).What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes