From 4febe4412c0f63e8f3f6e1cdddd9a4e841b68ebb Mon Sep 17 00:00:00 2001 From: juanatsap Date: Sun, 30 Nov 2025 15:22:03 +0000 Subject: [PATCH] feat: Improve plain text CV formatting - Center name and title in header - Add decorative box border around title - Add dash prefix to all contact items - Add spacing between all sections for readability - Fix title centering for emoji width in terminals --- templates/cv-text.txt | 87 +++++++++++++++++++++++++------------------ 1 file changed, 51 insertions(+), 36 deletions(-) diff --git a/templates/cv-text.txt b/templates/cv-text.txt index e72b027..de72e1b 100644 --- a/templates/cv-text.txt +++ b/templates/cv-text.txt @@ -1,33 +1,42 @@ ================================================================================ -{{if .Icons}} 📄 CURRICULUM VITAE -{{else}} CURRICULUM VITAE +{{if .Icons}} 📄 CURRICULUM VITAE +{{else}} CURRICULUM VITAE {{end}}================================================================================ -{{if .Icons}}👤 {{end}}{{.CV.Personal.Name}} -{{.CV.Personal.Title}} +{{if .Icons}} 👤 {{.CV.Personal.Name}} +{{else}} {{.CV.Personal.Name}} +{{end}} + ┌─────────────────────────────────────────────┐ + │ {{.CV.Personal.Title}} │ + └─────────────────────────────────────────────┘ -{{if .Icons}}📍{{else}}Location:{{end}} {{.CV.Personal.Location}} -{{if .Icons}}📧{{else}}Email: {{end}} {{.CV.Personal.Email}} -{{if .Icons}}📱{{else}}Phone: {{end}} {{.CV.Personal.Phone}} -{{if .Icons}}💼{{else}}LinkedIn:{{end}} {{.CV.Personal.LinkedIn}} -{{if .Icons}}💻{{else}}GitHub: {{end}} {{.CV.Personal.GitHub}} -{{if .Icons}}🌐{{else}}Website: {{end}} {{.CV.Personal.Website}} +- {{if .Icons}}📍{{else}}Location:{{end}} {{.CV.Personal.Location}} + +- {{if .Icons}}📧{{else}}Email: {{end}} {{.CV.Personal.Email}} + +- {{if .Icons}}📱{{else}}Phone: {{end}} {{.CV.Personal.Phone}} + +- {{if .Icons}}💼{{else}}LinkedIn:{{end}} {{.CV.Personal.LinkedIn}} + +- {{if .Icons}}💻{{else}}GitHub: {{end}} {{.CV.Personal.GitHub}} + +- {{if .Icons}}🌐{{else}}Website: {{end}} {{.CV.Personal.Website}} ================================================================================ -{{if .Icons}} 📝 SUMMARY -{{else}} SUMMARY +{{if .Icons}} 📝 SUMMARY +{{else}} SUMMARY {{end}}================================================================================ {{.CV.Summary}} ================================================================================ -{{if .Icons}} 💼 EXPERIENCE -{{else}} EXPERIENCE +{{if .Icons}} 💼 EXPERIENCE +{{else}} EXPERIENCE {{end}}================================================================================ {{range .CV.Experience}} -------------------------------------------------------------------------------- -{{if $.Icons}}🏢 {{end}}{{.Position}} -{{.Company}} | {{.Location}} +{{if $.Icons}}💼 {{end}}{{.Position}} +{{if $.Icons}}🏢 {{end}}{{.Company}} | {{.Location}} {{if $.Icons}}📅 {{end}}{{.StartDate}} - {{if .Current}}Present{{else}}{{.EndDate}}{{end}}{{if .Duration}} ({{.Duration}}){{end}} -------------------------------------------------------------------------------- @@ -40,17 +49,18 @@ {{end}} ================================================================================ -{{if .Icons}} 🎓 EDUCATION -{{else}} EDUCATION +{{if .Icons}} 🎓 EDUCATION +{{else}} EDUCATION {{end}}================================================================================ {{range .CV.Education}} {{if $.Icons}}📜 {{end}}{{.Degree}}{{if .Field}} - {{.Field}}{{end}} {{.Institution}} - {{.Location}} {{.StartDate}} - {{.EndDate}} + {{end}} ================================================================================ -{{if .Icons}} 🛠️ TECHNICAL SKILLS -{{else}} TECHNICAL SKILLS +{{if .Icons}} 🛠️ TECHNICAL SKILLS +{{else}} TECHNICAL SKILLS {{end}}================================================================================ {{range .CV.Skills.Technical}} {{if $.Icons}}## 📦 {{.Category}}{{else}}## {{.Category}}{{end}} @@ -58,16 +68,16 @@ {{end}} {{end}} ================================================================================ -{{if .Icons}} 🏆 AWARDS -{{else}} AWARDS +{{if .Icons}} 🏆 AWARDS +{{else}} AWARDS {{end}}================================================================================ {{range .CV.Awards}} {{if $.Icons}}🥇 {{end}}{{.Title}} - {{.Issuer}} ({{.Date}}) {{.Description}} {{end}} ================================================================================ -{{if .Icons}} 📁 PROJECTS -{{else}} PROJECTS +{{if .Icons}} 📁 PROJECTS +{{else}} PROJECTS {{end}}================================================================================ {{range .CV.Projects}} -------------------------------------------------------------------------------- @@ -81,8 +91,8 @@ {{end}} ================================================================================ -{{if .Icons}} 📚 COURSES -{{else}} COURSES +{{if .Icons}} 📚 COURSES +{{else}} COURSES {{end}}================================================================================ {{range .CV.Courses}} {{if $.Icons}}📖 {{end}}{{.Title}} - {{.Institution}} ({{.Date}}) @@ -92,23 +102,28 @@ {{end}} {{end}} ================================================================================ -{{if .Icons}} 🌍 LANGUAGES -{{else}} LANGUAGES +{{if .Icons}} 🌍 LANGUAGES +{{else}} LANGUAGES {{end}}================================================================================ {{range .CV.Languages}} - {{if $.Icons}}🗣️ {{end}}{{.Language}}: {{.Proficiency}}{{if .Detail}} - {{.Detail}}{{end}} {{end}} ================================================================================ -{{if .Icons}} 📬 CONTACT -{{else}} CONTACT +{{if .Icons}} 📬 CONTACT +{{else}} CONTACT {{end}}================================================================================ -{{if .Icons}}👤{{else}}Name: {{end}} {{.CV.Personal.Name}} -{{if .Icons}}📧{{else}}Email: {{end}} {{.CV.Personal.Email}} -{{if .Icons}}📱{{else}}Phone: {{end}} {{.CV.Personal.Phone}} -{{if .Icons}}💼{{else}}LinkedIn:{{end}} {{.CV.Personal.LinkedIn}} -{{if .Icons}}💻{{else}}GitHub: {{end}} {{.CV.Personal.GitHub}} -{{if .Icons}}🌐{{else}}Website: {{end}} {{.CV.Personal.Website}} +- {{if .Icons}}👤{{else}}Name: {{end}} {{.CV.Personal.Name}} + +- {{if .Icons}}📧{{else}}Email: {{end}} {{.CV.Personal.Email}} + +- {{if .Icons}}📱{{else}}Phone: {{end}} {{.CV.Personal.Phone}} + +- {{if .Icons}}💼{{else}}LinkedIn:{{end}} {{.CV.Personal.LinkedIn}} + +- {{if .Icons}}💻{{else}}GitHub: {{end}} {{.CV.Personal.GitHub}} + +- {{if .Icons}}🌐{{else}}Website: {{end}} {{.CV.Personal.Website}} ================================================================================ Generated from: {{.BaseURL}} | Last Updated: {{.CV.Meta.LastUpdated}}