/hugo-debug-utils

Modules with common utilities for easier debugging on a Hugo website

Primary LanguageHTML

Debugging Hugo made easy

Usage

Import as a Hugo module

hugo mod get github.com/clondon/hugo-debug-utils

Add in your template.

{{- partial "debug/debug.html" (dict "context" .) -}}

If you need the template information, in each template provide

{{- partial "debug/debug.html" (dict "context" . "template" "layouts/<your template location>") -}}

For printing to JavaScript console while development:

{{ partial "console" $someVariable }}

Contents

Debug Menu

Debug JSON helper