This is similar to the request I made here:
- Is there a way to ask hugo to be EXTRA explicit about page rendering?
- and the ask here: Template call graph
- and the component POC shared here: Render template trace tree
- which references Server option to output templates used?
However, there’s been quite a bit of rework to the guts of hugo since then, and I figure it’s entirely possible that this information is available now, whereas it really wasn’t before.
essentially, I’d like to be able to ask hugo to be super noisy… IE:
‘hey, hugo, when you built (this page) within the site, what templates/shortcodes/config files were used?’
I envision a few ways something like this could be possible…
being able to connect to hugo via a debug port while it is running in serve mode, and asking it to re-render a given page, section, site, and get more granular information on the resources (files/datasources/templates/shortcodes/configs/etc) which were used to build the thing…
or adding some frontmatter to a page ( IE: traceBuild: true or something)
or enumerating pages, resources, templates, etc to the
buildkey in hugo’s config…
to ask hugo to be extra noisy and pedantically note the amalgamated things used…
(or something along these lines? I’m not sure what’s already possible with the newer versions of hugo)
The reason I’m asking this, is I occasionally run into odd situations where hugo renders a page differently than I had anticipated…
I thought that being able to get a breakdown of includes/evaluations would be helpful in identifying where my logic is borked…