kaushalmodi/hugo-debugprint

Update Menus debug (type changed in Hugo 0.55)

Closed this issue · 5 comments

Update Menus debug (type changed in Hugo 0.55)

I am able to debug menu entries by using the following "hacks":

Debugging:

{{ range .Site.Menus.main }}
  {{ partial "debugprint.html" . }}
{{ end }}

Changes in debugprint.html:35:

{{ $typeIsMenuEntry            := (findRE "MenuEntry$" $type) }}

The menu itself can be found by:

{{ $typeIsMenu                 := (findRE "Menu$" $type) }}

I don't know though what to do with it (I don't understand everything in this template ;) The debugged menu items look fine to me.

Hope that helps.

@davidsneighbour Thanks for trying to help out with this.. it ended up being a bit more involved. Now the Menu debug seems to work as before based on basic testing.

image

Very cool. I could have used that a week ago, that's why I was so pushy ;) Looking good!

I could have used that a week ago

I was hiking in Acadia National Park in Maine then :). Though, I should have looked into fixing this issue a while back.

Nope. Clearing your brain is more important. Wizardry requires a de-stressed brain.