Skip to content

Modules with common utilities for easier debugging on a Hugo website

Notifications You must be signed in to change notification settings

hugoinaction/hugo-debug-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debugging Hugo made easy

Usage

Import as a Hugo module

hugo mod get github.com/atishay/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

About

Modules with common utilities for easier debugging on a Hugo website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 56.9%
  • CSS 39.3%
  • JavaScript 3.8%