Skip to content

beautiful-jekyll-next: improve hit counter badge #121

@ReenigneArcher

Description

@ReenigneArcher

Is there an existing issue for this item?

  • I have searched the existing issues

Repositories

LizardByte/beautiful-jekyll-next

Languages/Skills/Technologies

HTML, CSS, Ruby

Description

We can improve the hit counter badges by doing the following.

  1. Add a hit counter badge to the blog index page. For this we will need to make a custom badge that does not increase the count when downloaded. We can use shields.io with a custom query to https://hitscounter.dev/api/history?url=<url_encoded post/page url> The response will be like:
{"total_hits":7,"today_hits":7,"history":[{"hit_count":7,"hit_date":"2025-10-03","is_today":1}]}

edit: there is a preview badge available: https://hitscounter.dev/api/previewBadge?url=https%3A%2F%2Fapp.lizardbyte.dev%2F2024-02-01-multi-platform-cpp-development-in-clion%2F&label=hits&icon=github&color=%23198754&message=&style=for-the-badge&tz=UTC

  1. Make the badge clickable and have it go to https://hitscounter.dev/history?url=<url_encoded post/page url>

Estimated Effort

effort:Small

Priority

priority:Medium

Target Milestone

1-3 months

Dependencies

No response

Metadata

Metadata

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions