..................
/themes/hugo-clarity/layouts/partials/image.html:31:18":
execute of template failed: template: partials/image.html:31:18:
executing "partials/image.html" at <$image.MediaType.MainType>: nil pointer evaluating resource.Resource.MediaType
Why and how?
I was trying to render an image that was returning a 404 status code, So resources.GetRemote was returned nil, and the site failed to build.
render-image.html:21
image.html:31
both of these places cause this error.
Hotfix :
I simply solved this by checking nil {{- if $image -}}
Actual error:
Why and how? I was trying to render an image that was returning a 404 status code, So
resources.GetRemote
was returned nil, and the site failed to build.both of these places cause this error.
Hotfix : I simply solved this by checking nil
{{- if $image -}}
Desktop :