Wow! I’m glad to know my little tools are of use to someone else.

I wonder just how different your directory structure is from mine. Perhaps, we could add an option or two to to make your life easier? ;-) Drop me a line if you’re interested, we’ll try to figure something out.

Also, there’s a workaround I use to avoid seding the JSON for dashes: a parsed JSON is (obviously) a map in Hugo, so you can get the values of its keys by indexing them. And since index takes a string for the key name, dashes can be used freely, too. So, while fails, index "wm-target" can be used to achieve the same goal successfully.