{{ $fname := .Get "filename" | strings.TrimLeft "/" }} {{ if not (hasPrefix $fname "/") }} {{ .Scratch.Set "file" (printf "/%s" $fname) }} {{ else }} {{ .Scratch.Set "file" $fname }} {{ end }} {{- $width := .Get "width" | default "75%" }} {{.}}