I’m pretty sure you missed something. When a page doesn’t have a mainImg param the value is “”, hence the error. Learn to code defensively:
{{ with .Params.mainImg }}
{{ with resources.GetRemote . }}
{{ end }}
{{ end }}
I’m pretty sure you missed something. When a page doesn’t have a mainImg param the value is “”, hence the error. Learn to code defensively:
{{ with .Params.mainImg }}
{{ with resources.GetRemote . }}
{{ end }}
{{ end }}