HazAT / badge

Add a badge to your app icon
MIT License
966 stars 87 forks source link

Passing Custom Params for Generating Shield #61

Closed mamouneyya closed 6 years ago

mamouneyya commented 7 years ago

Hello,

It would be very useful if we can pass custom params for generating the shield:

?label=healthinesses | Override the default left-hand-side text (URL-Encoding needed for spaces or special characters!)
?logo=appveyor | Insert one of the named logos
?logo=data:image/png;base64,… | Insert custom logo image (≥ 14px high)
?logoWidth=40 | Set the horizontal space to give to the logo
?link=http://left&link=http://right | Specify what clicking on the left/right of a badge should do (esp. for social badge style)
?colorA=abcdef | Set background of the left part (hex color only)
?colorB=fedcba | Set background of the right part (hex color only)
?maxAge=3600 | Set the HTTP cache lifetime in secs

Reference: http://shields.io

Thanks!

HazAT commented 6 years ago

Fixes by referenced PR. Will make a new release.