{{ $_hugo_config := `{ "version": 1 }` }} {{ with .Get 0 }} {{ $version := printf "v%v" (strings.TrimLeft "vV" .) }} {{ $href := printf "https://github.com/gohugoio/hugo/releases/tag/%s" $version }} {{ $text := (printf `Deprecated in %s. %s` $href $version $.Inner) | safeHTML }} {{ partial "layouts/blocks/alert.html" (dict "text" $text "color" "orange" "icon" "exclamation" ) }} {{ else }} {{ errorf "The %q shortcode requires a single positional parameter indicating version. See %s" .Name .Position }} {{ end }}