change: print phone number when set via CV_CONTACT_PHONE
This commit is contained in:
parent
d18c3e3bdd
commit
45c239b5c0
3 changed files with 7 additions and 2 deletions
|
@ -4,7 +4,6 @@
|
|||
"jobTitle": "Platform Automation Engineer",
|
||||
"contact": {
|
||||
"email": "d.n.i.anglin@gmail.com",
|
||||
"phone": "07XXX-XXX-XXX",
|
||||
"location": "Hertfordshire, UK"
|
||||
},
|
||||
"links": {
|
||||
|
|
6
main.go
6
main.go
|
@ -40,6 +40,12 @@ func main() {
|
|||
}
|
||||
log.Println("INFO: JSON unmarshalling was successful.")
|
||||
|
||||
// if CV_CONTACT_PHONE is set then add it to the CV
|
||||
phone := os.Getenv("CV_CONTACT_PHONE")
|
||||
if len(phone) > 0 {
|
||||
cv.Contact.Phone = phone
|
||||
}
|
||||
|
||||
// Create the Output tex file
|
||||
log.Printf("INFO: Attempting to create output file %s...", cvOutputPath)
|
||||
if err = os.MkdirAll(cvOutputDir, 0750); err != nil {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
\cvtitle{<<.FirstName>> <<.LastName>>}{<<.JobTitle>>}
|
||||
\titleAndContact
|
||||
{\bf Email:} <<.Contact.Email>>\blank[none]
|
||||
{\bf Phone:} <<.Contact.Phone>>\blank[none]
|
||||
<<if .Contact.Phone>>{\bf Phone:} <<.Contact.Phone>>\blank[none]<<end>>
|
||||
{\bf Location:} <<.Contact.Location>>\blank[medium]
|
||||
|
||||
{\bf GitLab:} \goto{<<.Links.GitLab>>}[url(https://<<.Links.GitLab>>)]\blank[none]
|
||||
|
|
Loading…
Reference in a new issue