Back to Goreleaser

G Version

www/layouts/shortcodes/g_version.html

2.15.4858 B
Original Source

{{- $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 -}} {{- $linkTag := $tag -}} {{- $parts := split $tag "." -}} {{- if ge (len $parts) 3 -}} {{- $linkTag = delimit (first 2 $parts) "." -}} {{- end -}} Since {{ $tag }}. {{- end -}}