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 webmention.io-backup
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 sed
ing the JSON for dashes: a parsed JSON is (obviously) a map in Hugo, so you can get the values of its keys by index
ing them. And since index
takes a string for the key name, dashes can be used freely, too. So, while .Site.data.wm-target
fails, index .Site.data "wm-target"
can be used to achieve the same goal successfully.
Replies
Reactions
Ejitsu