A simple debug panel for Hugo development, which prints information about current page on the bottom, such as rendering time, page kind, page type, page layout and so on.
Module |
---|
github.com/hugomods/debugger |
It’s an experimental module, please feel free to submit feedback and share your ideas.
hugo.yaml
1module:
2 imports:
3 - path: github.com/hugomods/debugger
hugo.toml
1[module]
2[[module.imports]]
3 path = 'github.com/hugomods/debugger'
hugo.json
1{
2 "module": {
3 "imports": [
4 {
5 "path": "github.com/hugomods/debugger"
6 }
7 ]
8 }
9}
debugger/begin
PartialPlease skip this step if your theme supports HugoPress.
1{{ partial "debugger/begin" . }}
debugger/end
PartialPlease skip this step if your theme supports HugoPress.
1{{ partial "debugger/end" . }}