We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea447e commit 52e9ca3Copy full SHA for 52e9ca3
shield.go
@@ -33,9 +33,9 @@ func generateShieldSrc(icon Icon) (string, error) {
33
background = colorToHex(black)
34
}
35
36
- return fmt.Sprintf("https://img.shields.io/static/v1?style=for-the-badge&message=%s&color=%v&logo=%s&logoColor=%s&label=",
37
- url.QueryEscape(icon.Title),
38
- url.QueryEscape(background),
+ return fmt.Sprintf("https://img.shields.io/badge/%s-%s?style=for-the-badge&logo=%s&logoColor=%s",
+ url.PathEscape(icon.Title),
+ url.PathEscape(background),
39
url.QueryEscape(icon.Title),
40
url.QueryEscape(foreground),
41
), nil
0 commit comments