From 075a58efe41557123fd392c79133e72180f168e2 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Mon, 4 May 2026 14:53:01 +0100 Subject: [PATCH] fix: category badge before project title --- static/css/03-components/_cv-section.css | 2 +- templates/partials/sections/projects.html | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/static/css/03-components/_cv-section.css b/static/css/03-components/_cv-section.css index c67912f..73b9861 100644 --- a/static/css/03-components/_cv-section.css +++ b/static/css/03-components/_cv-section.css @@ -202,7 +202,7 @@ font-size: 0.6em; padding: 0.2em 0.5em; border-radius: 3px; - margin-left: 0.5em; + margin-right: 0.4em; vertical-align: middle; letter-spacing: 0.5px; } diff --git a/templates/partials/sections/projects.html b/templates/partials/sections/projects.html index 7c5f9af..bdbe0f0 100644 --- a/templates/partials/sections/projects.html +++ b/templates/partials/sections/projects.html @@ -23,7 +23,14 @@ {{end}}
- + {{if eq .Category "cli"}}CLI + {{else if eq .Category "app"}}APP + {{else if eq .Category "web"}}WEB + {{else if eq .Category "webapp"}}WEB + {{else if eq .Category "plugin"}}PLG + {{else if eq .Category "sdk"}}SDK + {{else if eq .Category "contrib"}}OSS + {{end}} {{if .ProjectName}} {{if .URL}}{{.ProjectName}}{{else}}{{.ProjectName}}{{end}}{{if .ProjectDesc}} - {{.ProjectDesc}}{{end}} {{else}} @@ -33,14 +40,6 @@ {{if .Current}}LIVE{{end}} {{if .GitRepoUrl}}{{if .Stars}}{{.Stars}}{{end}}{{end}} {{if .MaintainedBy}}{{$.UI.Sections.MaintainedBy}} {{.MaintainedBy}}{{end}} - {{if eq .Category "cli"}}CLI - {{else if eq .Category "app"}}APP - {{else if eq .Category "web"}}WEB - {{else if eq .Category "webapp"}}WEB - {{else if eq .Category "plugin"}}PLG - {{else if eq .Category "sdk"}}SDK - {{else if eq .Category "contrib"}}OSS - {{end}}
{{if .StartDate}}{{.StartDate}}{{if .Current}}{{if .DynamicDate}} / {{.DynamicDate}}{{else}} / {{$.UI.Sections.Present}}{{end}}{{end}}{{end}} - ({{.Location}})