Upon adding new Jpeg files to assets/img/comic and creation of the appropriate page, hugo fails to run, throwing the following error message:
ERROR render of "page" failed: "[path]Sites/mini-hugo-webcomic/layouts/page/archive.html:10:32": execute of template failed: template: page/archive.html:10:32: executing "main" at <$page.comicThumbImgRaw.Resize>: nil pointer evaluating interface {}.Resize
ERROR render of "home" failed: "[path]Sites/mini-hugo-webcomic/layouts/index.html:3:6": execute of template failed: template: index.html:3:6: executing "main" at <partial "comic/comic.html" $comics.lastPage>: error calling partial: "[path]Sites/mini-hugo-webcomic/layouts/partials/comic/comic.html:3:20": execute of template failed: template: partials/comic/comic.html:3:20: executing "partials/comic/comic.html" at <$page.comicImgRaw.Resize>: nil pointer evaluating interface {}.Resize
Built in 40 ms
Error: error building site: render: failed to render pages: render of "page" failed: "[path]/Sites/mini-hugo-webcomic/layouts/comic/single.html:2:6": execute of template failed: template: comic/single.html:2:6: executing "main" at <partial "comic/comic.html" .>: error calling partial: "[path]/Sites/mini-hugo-webcomic/layouts/partials/comic/comic.html:3:20": execute of template failed: template: partials/comic/comic.html:3:20: executing "partials/comic/comic.html" at <$page.comicImgRaw.Resize>: nil pointer evaluating interface {}.Resize
This does not happen if only the default content is present. As far as I can tell, I've followed all instructions correctly and I wonder if there isn't something that works differently between Hugo versions. My version of Hugo is
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=brew