execute of template failed: panic in Execute: runtime error: invalid memory address or nil pointer dereference. See "https://github.com/gohugoio/hugo/issues/5327" for the reason why we cannot provide a better error message for this.
I isolated the issue in a minimal project, adding the following files to an empty project:
Unrelated to the original topic, but I had to google what the heck cat <<'EOF' was doing. Very cool. TIL you can append multi-line strings to files like that
I thought that all languages defaulted to this file. Is there way to achieve this? I have some images that are the same for every language and the index.md file exists to indicate that the folder is a headless bundle, not a content file per se, so it’s the same file for every language.