问题描述
我想添加一个徽章,以计算我在GitHub上的一个项目的总下载次数.我碰到了具有所有图像防护罩的页面
I would like to add a badge that counts the total number of downloads that happen for one of my projects that I have on GitHub. I came across this page that has all the image shields
![Github 发布](https://img.shields.io/github/downloads/atom/atom/latest/total.svg?style=plastic)
![Github Releases](https://img.shields.io/github/downloads/atom/atom/latest/total.svg?style=plastic)
关于如何将其添加到GitHub中的项目的任何想法?
Any ideas on how I could add this to my project in GitHub?
推荐答案
您必须将其作为图像插入到README
中.如果您的README
是markdown(README.md),则应为:
You have to insert it as an image into your README
. If your README
is markdown (README.md) that should be like:
语法:
[![Github All Releases](https://img.shields.io/github/downloads/<-- User Name-->/<-- Your Repo Name-->/total.svg)]()
示例
[![Github All Releases](https://img.shields.io/github/downloads/atom/atom/total.svg)]()
如果您单击shields.io上的徽章,则可以复制粘贴降价语法,您需要将其插入README.md
If you click on the badge on shields.io you can copy-paste markdown syntax you need to insert into README.md
这篇关于将GitHub下载计数徽章添加到自述文件中记下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!