fix: Improve plain text CV output with dedicated template
- Replace html2text library conversion with dedicated text template - Create clean, well-formatted cv-text.txt template - Remove k3a/html2text dependency - Fix lint warnings in security tests (ineffectual assignments) - Output now shows only CV content without UI/menu elements
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
================================================================================
|
||||
CURRICULUM VITAE
|
||||
================================================================================
|
||||
|
||||
{{.CV.Personal.Name}}
|
||||
{{.CV.Personal.Title}}
|
||||
|
||||
Location: {{.CV.Personal.Location}}
|
||||
Email: {{.CV.Personal.Email}}
|
||||
Phone: {{.CV.Personal.Phone}}
|
||||
LinkedIn: {{.CV.Personal.LinkedIn}}
|
||||
GitHub: {{.CV.Personal.GitHub}}
|
||||
Website: {{.CV.Personal.Website}}
|
||||
|
||||
================================================================================
|
||||
SUMMARY
|
||||
================================================================================
|
||||
|
||||
{{.CV.Summary}}
|
||||
|
||||
================================================================================
|
||||
EXPERIENCE
|
||||
================================================================================
|
||||
{{range .CV.Experience}}
|
||||
--------------------------------------------------------------------------------
|
||||
{{.Position}}
|
||||
{{.Company}} | {{.Location}}
|
||||
{{.StartDate}} - {{if .Current}}Present{{else}}{{.EndDate}}{{end}}{{if .Duration}} ({{.Duration}}){{end}}
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
{{.ShortDescription}}
|
||||
|
||||
Responsibilities:
|
||||
{{range .Responsibilities}}- {{.}}
|
||||
{{end}}
|
||||
Technologies: {{range $i, $t := .Technologies}}{{if $i}}, {{end}}{{$t}}{{end}}
|
||||
|
||||
{{end}}
|
||||
================================================================================
|
||||
EDUCATION
|
||||
================================================================================
|
||||
{{range .CV.Education}}
|
||||
{{.Degree}}{{if .Field}} - {{.Field}}{{end}}
|
||||
{{.Institution}} - {{.Location}}
|
||||
{{.StartDate}} - {{.EndDate}}
|
||||
{{end}}
|
||||
================================================================================
|
||||
TECHNICAL SKILLS
|
||||
================================================================================
|
||||
{{range .CV.Skills.Technical}}
|
||||
## {{.Category}}
|
||||
{{range .Items}}- {{.}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
================================================================================
|
||||
AWARDS
|
||||
================================================================================
|
||||
{{range .CV.Awards}}
|
||||
{{.Title}} - {{.Issuer}} ({{.Date}})
|
||||
{{.Description}}
|
||||
{{end}}
|
||||
================================================================================
|
||||
PROJECTS
|
||||
================================================================================
|
||||
{{range .CV.Projects}}
|
||||
--------------------------------------------------------------------------------
|
||||
{{.Title}}{{if .URL}} - {{.URL}}{{end}}
|
||||
{{if .Location}}{{.Location}}{{end}}
|
||||
--------------------------------------------------------------------------------
|
||||
{{.ShortDescription}}
|
||||
{{range .Responsibilities}}- {{.}}
|
||||
{{end}}
|
||||
Technologies: {{range $i, $t := .Technologies}}{{if $i}}, {{end}}{{$t}}{{end}}
|
||||
|
||||
{{end}}
|
||||
================================================================================
|
||||
COURSES
|
||||
================================================================================
|
||||
{{range .CV.Courses}}
|
||||
{{.Title}} - {{.Institution}} ({{.Date}})
|
||||
{{.Location}}
|
||||
{{if .Description}}{{.Description}}{{end}}
|
||||
{{range .Responsibilities}}- {{.}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
================================================================================
|
||||
LANGUAGES
|
||||
================================================================================
|
||||
{{range .CV.Languages}}
|
||||
- {{.Language}}: {{.Proficiency}}{{if .Detail}} - {{.Detail}}{{end}}
|
||||
{{end}}
|
||||
================================================================================
|
||||
CONTACT
|
||||
================================================================================
|
||||
|
||||
Name: {{.CV.Personal.Name}}
|
||||
Email: {{.CV.Personal.Email}}
|
||||
Phone: {{.CV.Personal.Phone}}
|
||||
LinkedIn: {{.CV.Personal.LinkedIn}}
|
||||
GitHub: {{.CV.Personal.GitHub}}
|
||||
Website: {{.CV.Personal.Website}}
|
||||
|
||||
================================================================================
|
||||
Generated from: {{.BaseURL}}
|
||||
Last Updated: {{.CV.Meta.LastUpdated}}
|
||||
================================================================================
|
||||
Reference in New Issue
Block a user