如果你经常浏览Github,那么你对这些徽章肯定不陌生:
这些徽章展示了这个项目的基本信息,如开源证书(LICENSE),最新版本,下载数量等。
Get Started
这些标签都来自一个网站:Shields.io
本文将以我的项目NCM Downloader举例。
A powerful NCM Downloader that supports built-in metadata 一个强大的网易云下载工具,支持内嵌元信息(歌曲名,歌手,专辑,歌曲封面) https://ncm.xuxiny.top
注:所有badge链接可以在Shields.io中找到并在线生成。下面仅展示部分badge。
Badges
1. 下载量:
https://img.shields.io/github/downloads/用户名/仓库名称/total
2.最新版本(Release):
https://img.shields.io/github/v/release/用户名/仓库名称
3. Issues
https://img.shields.io/github/issues/用户名/仓库名称
并排显示
想要并排显示需要使用HTML代码,下面贴出我的代码,仅供参考
<div align="center"> [Docs](https://ncm.xuxiny.top) <a href="https://github.com/xxynet/NCM-Downloader/releases"> <img src="https://img.shields.io/github/v/release/xxynet/NCM-Downloader" alt="latest version" /> </a> <a href="https://github.com/xxynet/NCM-Downloader/releases"> <img src="https://img.shields.io/github/downloads/xxynet/NCM-Downloader/total" alt="downloads" /> </a> <a href="https://github.com/xxynet/NCM-Downloader/issues"> <img src="https://img.shields.io/github/issues/xxynet/NCM-Downloader" alt="issues" /> </a> </div>
更多badges请参考Shields.io
访问xxynet/NCM-Downloader看看我的项目使用的效果