From 29aa3d1fd7ca45f86b03db647625229688dd82f6 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Mon, 4 May 2026 14:19:26 +0100 Subject: [PATCH] fix: stars badge on all projects with a GitHub repo, not just openSource --- internal/handlers/cv_helpers.go | 2 +- templates/partials/sections/projects.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/handlers/cv_helpers.go b/internal/handlers/cv_helpers.go index e6f9359..aa6f6c4 100644 --- a/internal/handlers/cv_helpers.go +++ b/internal/handlers/cv_helpers.go @@ -333,7 +333,7 @@ func (h *CVHandler) prepareTemplateData(lang string) (map[string]interface{}, er // Process projects for dynamic dates and fetch GitHub stars for i := range cv.Projects { processProjectDates(&cv.Projects[i], lang) - if cv.Projects[i].OpenSource && cv.Projects[i].GitRepoUrl != "" { + if cv.Projects[i].GitRepoUrl != "" { cv.Projects[i].Stars = getGitHubStars(cv.Projects[i].GitRepoUrl) } } diff --git a/templates/partials/sections/projects.html b/templates/partials/sections/projects.html index 9537e6f..d7b8022 100644 --- a/templates/partials/sections/projects.html +++ b/templates/partials/sections/projects.html @@ -32,7 +32,7 @@ {{if .Current}}LIVE{{end}} {{if .GitRepoUrl}}GitHub{{end}} - {{if and .OpenSource .GitRepoUrl}}{{if .Stars}}{{.Stars}} {{end}}stars{{end}} + {{if .GitRepoUrl}}{{if .Stars}}{{.Stars}} {{end}}stars{{end}} {{if .MaintainedBy}}{{$.UI.Sections.MaintainedBy}} {{.MaintainedBy}}{{end}}
{{if .StartDate}}{{.StartDate}}{{if .Current}}{{if .DynamicDate}} / {{.DynamicDate}}{{else}} / {{$.UI.Sections.Present}}{{end}}{{end}}{{end}} - ({{.Location}})