Outline
I use Jekyll and GitHub to write this blog post. I was looking for a way to display the number of visitors on the static site like this, and I found HITS
project.
- HITS: GitHub
What is HITS
HITS is originally the project to show visitors count for GitHub project.
To use HITS, visit the site below,
- HITS: https://hits.dwyl.com/
You can see the screen like below.
On above screen, when you insert username
and repo/project
of GitHub,
You can get the URL like below.
![HitCount](http://hits.dwyl.com/dev-yakuza/react-native-image-modal.svg)
If you insert this link to README on Github, you can display visitors count.
- Visitors count:
If you refresh, you can see the number is changed dynamically.
Jekyll blog
I use HITS
to show the number of visitors on Jekyll blog.
To show visitors count like above, I use the code below on _layouts/post.html
.
<img
style="width: inherit;"
src="http://hits.dwyl.com/dev-yakuza.github.io{{ page.url }}.svg"
alt="hit count image"
/>
Complete
If you use Jekyll, or static site generators for the blog, how about using HITS
to show visitors count on the site?
Was my blog helpful? Please leave a comment at the bottom. it will be a great help to me!
App promotion
Deku
.Deku
created the applications with Flutter.If you have interested, please try to download them for free.