{{- $text := .Get 0 -}}
{{- $unreleased := strings.HasSuffix $text "-unreleased" -}}
{{- if $unreleased -}}
	{{- $tag := strings.TrimSuffix "-unreleased" $text -}}
	{{- $content := printf "Since %s (unreleased)" $tag -}}
	{{- partial "shortcodes/badge.html" (dict
		  "content" $content
		  "color" "indigo"
		  "class" ""
		  "border" true
		  "icon" "beaker"
		)
	-}}{{- /* no empty line */ -}}
{{- else -}}
	{{- $tag := $text -}}
	{{- $linkTag := $tag -}}
	{{- $parts := split $tag "." -}}
	{{- if ge (len $parts) 3 -}}
		{{- $linkTag = delimit (first 2 $parts) "." -}}
	{{- end -}}
	{{- $link := printf "/blog/goreleaser-%s" $linkTag -}}
	{{- $content := printf "Since %s" $tag -}}
<a href="{{ $link }}"
	title="{{ $content | plainify }}"
	target="_blank"
	rel="noopener noreferrer"
	class="not-prose hx:inline-flex hx:align-middle hx:no-underline hover:hx:no-underline">
	{{- partial "shortcodes/badge.html" (dict
		  "content" $content
		  "color" "indigo"
		  "class" ""
		  "border" true
		  "icon" "status-online"
		)
	-}}
</a>{{- /* no empty line */ -}} {{- end -}}
