Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve badge integration sections #652

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Improve badge integration sections #652

merged 2 commits into from
Jun 24, 2024

Conversation

notarock
Copy link
Contributor

This pull request add URL encoding and make the two badges a bit more distinct.

When I was looking at the Badge section under integration, I was confused as to why the same badge was being displayed two times, without realizing one was a direct link to the current instance and the other links to shields.io using your instance's data. By making them a bit distinct, it could help remove that confusion when users first look at this section.

Also, by changing the space by a URL-encoded space in the link, it wont breaks the link when a user try to copy the badge link somewhere else.

Before:

image

Copying the badge gives me ![badge](https://wakapi.notarock.lol/api/badge/notarock/notarock/interval:30_days?label=last 30d)

After:

image

Copying the badge gives me badge

@muety
Copy link
Owner

muety commented Jun 24, 2024

Great, thank you! 👍

@muety muety merged commit 89550ee into muety:master Jun 24, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants