{{ $title := .Title | markdownify }} {{ $date := .Date | dateFormat "January 2, 2006" }} {{ $badges := .Params.badges }} {{ $colors := dict "deprecation" "red" "enhancement" "green" "new feature" "blue" "breaking change" "yellow" "featured" "violet" "performance" "orange" "announcement" "fuchsia" }} {{ $type := $badges.type | default "enhancement" }} {{ $color := index $colors $type }}
{{ $title }}

{{ with $badges.type }} {{ $color := cond (eq . "deprecation") "red" "blue" }} {{ partial "badge.html" (dict "prefix" "type" "word" . "color" $color "inline" true) }} {{ end }} {{ range $badges.domains }} {{ partial "badge.html" (dict "prefix" "domain" "word" . "color" "indigo" "inline" true) }} {{ end }} {{ range $badges.sources }} {{ partial "badge.html" (dict "prefix" "source" "word" . "color" "violet" "inline" true) }} {{ end }} {{ range $badges.transforms }} {{ partial "badge.html" (dict "prefix" "transform" "word" . "color" "violet" "inline" true) }} {{ end }} {{ range $badges.sinks }} {{ partial "badge.html" (dict "prefix" "sink" "word" . "color" "violet" "inline" true) }} {{ end }}