mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-15 03:16:30 +01:00
7 lines
No EOL
665 B
HTML
7 lines
No EOL
665 B
HTML
{{- $version := .Get 0 -}}
|
|
{{- $url := printf "https://github.com/dillonzq/LoveIt/releases/tag/v%s" $version -}}
|
|
{{- $label := .Get 1 | default "new" | T -}}
|
|
{{- $color := cond (.Get 1 | eq "changed") "ff9101" "00b1ff" | cond (.Get 1 | eq "deleted") "ff5252" -}}
|
|
{{- $badge := printf "https://img.shields.io/badge/%s-%s-%s?style=flat-square&labelColor=403c3d&?cacheSeconds=maxAge" $label $version $color -}}
|
|
{{- $alt := printf "LoveIt %s | %s" $label $version -}}
|
|
<span class="version{{ if .Get 2 | eq `small` }} small{{ end }}"><a href="{{ $url }}" rel="noopener noreffer" target="_blank">{{ partial "plugin/image.html" (dict "src" $badge "alt" $alt) }}</a></span> |