After some discussion with other folks, I have submitted a PR that I think addresses this problem:
I thought the difference in interface types would be an issue in writing this, but fortunately @spf13 has cast.ToStringMap
, which is literally the exact function I needed and didn’t want to have to write since it’s not really in-scope for Hugo.