Skip to content
/ hits Public

🍁 The most customizable hits counter based on shields.io

License

Notifications You must be signed in to change notification settings

notgabry/hits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧭 hits

🍁The most customizable hits counter based on shields.io

❓ How to use

To use the counter just add https://hits.up.railway.app as an image and add the required queries.
To add the number of hits add {{hits}} to the label or the message.

πŸ“ƒ Required Queries

  1. label
  2. color

πŸ“„ Optional Queries

  1. message
  2. labelColor
  3. logoColor
  4. logo
  5. style

If you want more informations about the badge's customization here it is the shields.io docs

🎩 GitHub Badge

The counter automatically gets the origin header but github doesn't send it when requesting an image so you must add 2 more required queries: user, repository.

🎯 Examples

<img src="https://hits.up.railway.app/github?label={{hits}}_Github_Badge_Views&color=191724&logo=github&style=for-the-badge&user=NotGabry&repository=hits&labelColor=c4a7e7&logoColor=191724">

<img src="https://hits.up.railway.app/badge?label={{hits}}_Classic_Badge_Views&color=191724&logo=github&style=for-the-badge&labelColor=c4a7e7&logoColor=191724">

Warning The classic badge does not work here because we are in a github readme