Which worked before as intended, now occasions this message:
Error: error building site: "/home/drm/WEBSITE/content/docs/Love/meta.md:1:1":
"/home/drm/WEBSITE/layouts/_default/_markup/render-image.html:80:6":
execute of template failed: template:
_default/_markup/render-image.html:80:6: executing "partial/defaultImage" at
<$.Page.Store.Add>: error calling Add: cannot append slice of string to slice of interface {}
As a general note, using collections.Append with a slice of slices can be tricky… it depends on what you’re starting with (i.e., an empty slice vs. a slice of slices as described in the documentation).
You could start with a slice of a string slice that contains one empty element, then append:
Why though ? Is that a feature or a bug (asking seriously) ? Is it a drawback of lazy typing ?
Is there another solution ? Does appending to a slice of dict work better ? I’m pretty sure I used the last version before this one, but no matter.
I see, a bug seen too late to be fixed without breaking configs. unfortunate.
it does work with a slice of map, without the empty element hack. For now . I’ll stick with that.
Thanks for the explanation.