Contributor Badge
The contributor badge shows how many people are in your contributor table. The tools write it between the badge markers, and by default it contains a fixed number:
[](#contributors-)That number changes only when the bot or the CLI generates the table again. If you edit .all-contributorsrc by hand, the badge falls behind until the next run.
Use a badge that updates on its own
Section titled “Use a badge that updates on its own”shields.io offers a badge that counts the contributors in the .all-contributorsrc of a GitHub repository, so it stays correct without a new run. To have the tools write that badge, set badgeTemplate to it, with your owner and repository name in place of acme/widgets:
{ "badgeTemplate": "[](#contributors-)"}Spell out the owner and the name, because the template can’t use them as placeholders. The new badge replaces the old one the next time a contributor is added or you run all-contributors generate. The count shown by shields.io follows your default branch, so it changes after you merge, and shields.io can take a short while to refresh it.
If you would rather manage the badge yourself, paste the same Markdown anywhere in your README and remove the badge markers. The tools then leave it alone, and the count still updates.
Change the color and style
Section titled “Change the color and style”The color and the style are part of the badge address. In the fixed-number badge, they follow the count, as in orange.svg?style=flat-square. In the shields.io badge, they are the color and style parameters. The color can be a name such as blue or a hex code without the #, and the style can be flat, flat-square, plastic, for-the-badge or social.
The following template keeps the fixed number but makes the badge blue:
{ "badgeTemplate": "[](#contributors-)"}