DEV Community

Discussion on: Responsive images for Hugo

Collapse
 
timtorres profile image
Tim Torres • Edited

I got an error using the code above:

calling Get: reflect: call of reflect.Value.Interface on zero Value

Upon searching for this error I found a recommendation (which is what @dmayo2 below has mentioned, but without listing the error) in the Hugo support form to change:
{{ if .Get $medium }}
to:
{{ if .Get (print $medium) }}

I don't understand why this is happening but it works and reflects Laura Kalbag's solution.