如何制作左侧只有徽标的 shield.io 徽章?

How to make a shield.io badge with just a logo in the left side?

以下 Shield.io instructions, We can use the logo param to access a bunch of icons available through Simple Icons 索引。但是,如果不确定标签,我也无法在徽章左侧使用它们。

徽章 是根据以下请求生成的:

https://img.shields.io/static/v1?logo=react&message=React&color=Blue

是否可以只在左侧获得一个图标?

我个人使用'%20'作为标签,这是使用Percent-encoding编码的space字符(参见:https://www.w3schools.com/tags/ref_urlencode.ASP

对于您的徽章,正确的 url 应该是:

https://img.shields.io/static/v1?message=React&logo=react&labelColor=5c5c5c&color=1182c3&logoColor=white&label=%20