Skip to content

Commit f195e89

Browse files
committed
fix: Update README to reflect the most productive day and adjust badge display for language statistics
1 parent e36d87a commit f195e89

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export GITHUB_TOKEN=$(gh auth token)
142142
<td align="center">
143143
<img src="https://img.icons8.com/fluency/96/000000/calendar.png" width="40"/>
144144
<br><strong>Most Productive Day</strong>
145-
<br>🔥 <code>Tuesday</code>
145+
<br>💚 <code>Thursday</code>
146146
</td>
147147
<td align="center">
148148
<img src="https://img.icons8.com/fluency/96/000000/clock.png" width="40"/>
@@ -176,12 +176,7 @@ export GITHUB_TOKEN=$(gh auth token)
176176

177177
<div align="center">
178178

179-
![JavaScript](https://img.shields.io/badge/JavaScript-87.6%25-blue?style=flat-square&logo=javascript)
180-
![TypeScript](https://img.shields.io/badge/TypeScript-5.1%25-blue?style=flat-square&logo=typescript)
181-
![SCSS](https://img.shields.io/badge/SCSS-2.0%25-blue?style=flat-square&logo=sass)
182-
183-
![Go](https://img.shields.io/badge/Go-1.7%25-blue?style=flat-square&logo=go)
184-
![HTML](https://img.shields.io/badge/HTML-1.2%25-blue?style=flat-square&logo=html5)
179+
![JavaScript](https://img.shields.io/badge/JavaScript-87.6%25-blue?style=flat-square&logo=javascript) ![TypeScript](https://img.shields.io/badge/TypeScript-5.1%25-blue?style=flat-square&logo=typescript) ![SCSS](https://img.shields.io/badge/SCSS-2.0%25-blue?style=flat-square&logo=sass) ![Go](https://img.shields.io/badge/Go-1.7%25-blue?style=flat-square&logo=go) ![HTML](https://img.shields.io/badge/HTML-1.2%25-blue?style=flat-square&logo=html5)
185180

186181
</div>
187182

@@ -208,7 +203,7 @@ export GITHUB_TOKEN=$(gh auth token)
208203

209204
<div align="center">
210205

211-
<sub>📅 Last updated: Thursday, October 30, 2025 at 9:25 AM</sub>
206+
<sub>📅 Last updated: Thursday, October 30, 2025 at 9:28 AM</sub>
212207

213208
<sub>⚡ Generated with [GitInsights](https://github.com/awcodify/GitInsights)</sub>
214209

presentation/markdown_generator.go

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,24 +131,15 @@ func (m *MarkdownGenerator) Generate(stats *domain.ProfileStats) string {
131131
lines = append(lines, "<div align=\"center\">")
132132
lines = append(lines, "")
133133

134-
// Generate language statistics with modern styling
134+
// Generate language statistics with modern styling - display top 5 languages in badges on a single line
135+
var badges []string
135136
for i, lang := range stats.Languages {
136-
if i >= 5 { // Show top 5 in visual cards
137+
if i >= 5 {
137138
break
138139
}
139-
140-
lines = append(lines, fmt.Sprintf("![%s](https://img.shields.io/badge/%s-%.1f%%25-blue?style=flat-square&logo=%s)",
141-
lang.Language,
142-
strings.ReplaceAll(lang.Language, " ", "_"),
143-
lang.Percentage,
144-
m.getLanguageLogo(lang.Language)))
145-
146-
if (i+1)%3 == 0 {
147-
lines = append(lines, "")
148-
} else {
149-
lines[len(lines)-1] += " "
150-
}
140+
badges = append(badges, fmt.Sprintf("![%s](https://img.shields.io/badge/%s-%.1f%%25-blue?style=flat-square&logo=%s)", lang.Language, strings.ReplaceAll(lang.Language, " ", "_"), lang.Percentage, m.getLanguageLogo(lang.Language)))
151141
}
142+
lines = append(lines, strings.Join(badges, " "))
152143

153144
lines = append(lines, "")
154145
lines = append(lines, "</div>")

0 commit comments

Comments
 (0)