{{- $text := .Get 0 -}} {{- $unreleased := strings.HasSuffix $text "-unreleased" -}} {{- $tag := $text}} {{- $icon := "status-online"}} {{- if $unreleased -}} {{- $tag = strings.TrimSuffix "-unreleased" $text -}} {{- $icon = "beaker" -}} {{- end -}} {{- $class := "hx:border-indigo-200 hx:bg-indigo-100 hx:text-indigo-900 hx:dark:border-indigo-200/30 hx:dark:bg-indigo-900/30 hx:dark:text-indigo-200" -}}
{{ partial "utils/icon.html" (dict "name" $icon "attributes" `height=1.2em class="hx:inline-block hx:align-middle"` ) -}}
{{- if $unreleased -}} This will be available in the next release ({{ $tag }}). Stay tuned! {{- else -}} Since {{ $tag }}. {{- end -}}