{{/* .Destination is marked safe below, so scripting schemes are dropped here */ -}} {{ $scheme := lower (urls.Parse .Destination).Scheme -}} {{ if in (slice "javascript" "vbscript") $scheme -}} {{ warnidf "unsafe-image-scheme" "dropped %s: image in %s" $scheme .Page.Path -}} {{ else -}} {{ .Text }} {{- end -}}