docs: fix broken YouTube badge and update link#78
docs: fix broken YouTube badge and update link#78hamzanazir27 wants to merge 2 commits intoAOSSIE-Org:mainfrom
Conversation
…Tube badge and update to official channel Commented out the todo project logo image and updated the YouTube badge.
WalkthroughThis PR updates Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@README.md`:
- Around line 44-45: Update the img tag's alt attribute to use the brand-correct
capitalization by changing alt="Youtube Badge" to alt="YouTube Badge" in the
<a>…<img> block (the anchor linking to https://www.youtube.com/@AOSSIE-Org
containing the shields.io badge image) so the alt text matches YouTube's
official capitalization.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@README.md`:
- Around line 45-46: The YouTube badge currently uses a hardcoded count and
identical label/message color; update the img src in the <img> tag to use
shields.io's dynamic YouTube subscribers endpoint
(/youtube/channel/subscribers/<CHANNEL_ID>) replacing the static
"subscribers-73-FF0000" segment with "youtube/channel/subscribers/<CHANNEL_ID>"
and set a contrasting labelColor (e.g., labelColor=ffffff or label="Subscribe")
so the left label is readable, or alternatively revert the <img> to the previous
static "Subscribe" CTA badge if you prefer a non-dynamic, never-stale badge.
| <img src="https://img.shields.io/badge/subscribers-73-FF0000?style=flat&logo=youtube&logoColor=white&labelColor=FF0000" alt="YouTube Badge"> | ||
| </a> |
There was a problem hiding this comment.
Two issues with the new YouTube badge: hardcoded stale count and invisible label contrast.
-
Hardcoded subscriber count will go stale. The static value
73insubscribers-73-FF0000is frozen at the time of commit. Shields.io supports a native YouTube Channel Subscribers badge that pulls live data — consider switching to that instead. -
labelColor=FF0000matches the badge color, eliminating contrast. Both the label section (left,labelColor) and the message section (right, badge color) areFF0000, so the whole badge renders as a uniform red block with no visual separator between "subscribers" and "73".
If a live subscriber count is desired, the shields.io YouTube Channel Subscribers badge (/youtube/channel/subscribers/<CHANNEL_ID>) provides a dynamic count without requiring a hardcoded value.
If a static CTA is preferred (simpler and never goes stale), reverting to the previous "Subscribe" badge is a better choice:
🛠️ Option A — Dynamic subscriber badge (preferred)
- <img src="https://img.shields.io/badge/subscribers-73-FF0000?style=flat&logo=youtube&logoColor=white&labelColor=FF0000" alt="YouTube Badge">
+ <img src="https://img.shields.io/youtube/channel/subscribers/<CHANNEL_ID>?style=flat&logo=youtube&logoColor=white&label=Subscribe&color=FF0000" alt="YouTube Badge">Replace <CHANNEL_ID> with the AOSSIE-Org YouTube channel ID.
🛠️ Option B — Static Subscribe CTA (no stale data)
- <img src="https://img.shields.io/badge/subscribers-73-FF0000?style=flat&logo=youtube&logoColor=white&labelColor=FF0000" alt="YouTube Badge">
+ <img src="https://img.shields.io/badge/YouTube-Subscribe-FF0000?style=flat&logo=youtube&logoColor=white" alt="YouTube Badge">📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| <img src="https://img.shields.io/badge/subscribers-73-FF0000?style=flat&logo=youtube&logoColor=white&labelColor=FF0000" alt="YouTube Badge"> | |
| </a> | |
| <img src="https://img.shields.io/badge/YouTube-Subscribe-FF0000?style=flat&logo=youtube&logoColor=white" alt="YouTube Badge"> | |
| </a> |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@README.md` around lines 45 - 46, The YouTube badge currently uses a hardcoded
count and identical label/message color; update the img src in the <img> tag to
use shields.io's dynamic YouTube subscribers endpoint
(/youtube/channel/subscribers/<CHANNEL_ID>) replacing the static
"subscribers-73-FF0000" segment with "youtube/channel/subscribers/<CHANNEL_ID>"
and set a contrasting labelColor (e.g., labelColor=ffffff or label="Subscribe")
so the left label is readable, or alternatively revert the <img> to the previous
static "Subscribe" CTA badge if you prefer a non-dynamic, never-stale badge.
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
| <img src="https://img.shields.io/badge/subscribers-73-FF0000?style=flat&logo=youtube&logoColor=white&labelColor=FF0000" alt="YouTube Badge"> | ||
| </a> |
|
Please resolve the merge conflicts before review. Your PR will only be reviewed by a maintainer after all conflicts have been resolved. 📺 Watch this video to understand why conflicts occur and how to resolve them: |
While checking the Template-Repo, I noticed that the YouTube badge was broken and not displaying correctly
now fixed
…Tube badge and update to official channel
Commented out the todo project logo image and updated the YouTube badge.
Addressed Issues:
Fixes #(issue number)
Screenshots/Recordings:
Additional Notes:
Checklist
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.
Summary by CodeRabbit