Debug tables
hugo-debug-tables is a Hugo module / theme component that adds partials and a shortcode for displaying most variables available on pages generated by Hugo. See License for permissions for use.
Modern Hugo only (as of 2021-03-20)
This module is built using assumptions that may require Hugo 0.81.0 or higher, and in any event those are the only versions on which it has been tested, at present.
Acknowledgements
Idea and initial HTML sources from zwbetz-gh/starter-hugo-debug-site debug-table
Alternative approaches
- Hugo Debug Bar
- This looks interesting as it is an overlay over the page, and the variables are curated rather than an alphabetical full dump.
- On the downside, it looks like more work to use this.
- Hugo Debug Print
- David’s Neighbour Org Debug Module
- Adds debug to
hugo
run rather than embedded in the site.
- Adds debug to
See also Discussions on the Hugo forum, from the Hugo Debug Bar repository