From 6da7da0c49a57762c8d1e0e43ef142af8d40240e Mon Sep 17 00:00:00 2001 From: juanatsap Date: Sun, 9 Nov 2025 14:41:03 +0000 Subject: [PATCH] Add missing badge rendering for experience items and projects - Added CURRENT badge for current positions (green) - Added EXPIRED badge for expired positions (red) - Added MAINTAINED BY badge for projects maintained by third parties (blue) - Badges support both English and Spanish translations - Fixes issue where badge data existed in JSON but wasn't being rendered --- templates/cv-content.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/cv-content.html b/templates/cv-content.html index 7d4fdd8..eaa9f65 100644 --- a/templates/cv-content.html +++ b/templates/cv-content.html @@ -106,7 +106,10 @@ {{end}}
- {{.Position}}{{if .Company}} - {{if .CompanyURL}}{{.Company}}{{else}}{{.Company}}{{end}}{{if .Duration}} - {{.Duration}}{{end}}{{end}}
+ {{.Position}}{{if .Company}} - {{if .CompanyURL}}{{.Company}}{{else}}{{.Company}}{{end}}{{if .Duration}} - {{.Duration}}{{end}}{{end}} + {{if .Current}}{{if eq $.Lang "es"}}ACTUAL{{else}}CURRENT{{end}}{{end}} + {{if .Expired}}{{if eq $.Lang "es"}}EXPIRADO{{else}}EXPIRED{{end}}{{end}} +
{{.StartDate}} / {{if .Current}}{{if eq $.Lang "es"}}presente{{else}}now{{end}}{{else}}{{.EndDate}}{{end}} - ({{.Location}}) {{if .ShortDescription}} @@ -215,7 +218,10 @@ {{else}} {{if .URL}}{{.Title}}{{else}}{{.Title}}{{end}} {{end}} -
+ + {{if .Current}}{{if eq $.Lang "es"}}ACTUAL{{else}}CURRENT{{end}}{{end}} + {{if .MaintainedBy}}{{if eq $.Lang "es"}}MANTENIDO POR{{else}}MAINTAINED BY{{end}} {{.MaintainedBy}}{{end}} +
{{if .StartDate}}{{.StartDate}}{{if .Current}}{{if .DynamicDate}} / {{.DynamicDate}}{{else}} / {{if eq $.Lang "es"}}presente{{else}}now{{end}}{{end}}{{end}}{{end}} - ({{.Location}}) {{if .ShortDescription}}