"...<$src.Permalink>: nil pointer evaluating resource.Resource.Permalink" only when publishing online

Good day/nigh,

I am having a bit of trouble trying to publish my website, when building and serving my webpage on localhost everything works fine, however when building on Github pages and Netlify I get the following error due to my images shortcode:

execute of template failed: template: shortcodes/images.html:6:55: executing "shortcodes/images.html" at <$src.Permalink>: nil pointer evaluating resource.Resource.Permalink
(The same happens on Netlify by the way)
I made sure my images live under /assets/, but I am clueless about how to debug this.
Any help is appreciated, thanks!

should be resources.Get.

Thanks for the help, when I use {{$src := .Get “src” }} it works now, now my issue seems to be how to make it work with .Permalink since it gives me a string error