README: add microbadger links

This commit is contained in:
zimbatm 2019-03-16 15:45:32 +01:00
parent 00e19c8779
commit d8642dcc66
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 14 additions and 12 deletions

View file

@ -11,10 +11,12 @@ microbadge() {
name=$name:$tag
fi
# make sure that microbadger has loaded the image
curl -o /dev/null -sfL "https://microbadger.com/images/$name"
local homepage=https://microbadger.com/images/$name
echo "![](https://images.microbadger.com/badges/image/$name.svg)"
# make sure that microbadger has loaded the image
curl -o /dev/null -sfL "$homepage"
echo "[![](https://images.microbadger.com/badges/image/$name.svg)]($homepage)"
}
## Main ##