Skip to content

Commit

Permalink
Merge pull request #2 from stuxf/optional
Browse files Browse the repository at this point in the history
feat: emails, github, etc. are now optional.
  • Loading branch information
stuxf authored Oct 5, 2024
2 parents c4972b6 + 818c735 commit 8576cb8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
34 changes: 21 additions & 13 deletions src/resume.typ
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,27 @@
top: 0.25em,
align(left)[
#(
// Phone Number
phone,
// Location
location,
// Email
link("mailto:" + email)[#email],
// Github
link("https://" + github)[#github],
// Linkedin
link("https://" + linkedin)[#linkedin],
// Personal Site
link("https://" + personal-site)[#personal-site],
).join(" | ")
(
if phone != "" {
phone
},
if location != "" {
location
},
if email != "" {
link("mailto:" + email)[#email]
},
if github != "" {
link("https://" + github)[#github]
},
if linkedin != "" {
link("https://" + linkedin)[#linkedin]
},
if personal-site != "" {
link("https://" + personal-site)[#personal-site]
},
).filter(x => x != none).join(" | ")
)
],
)

Expand Down
4 changes: 3 additions & 1 deletion template/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@

#show: resume.with(
author: name,
// All the lines below are optional.
// For example, if you want to to hide your phone number:
// feel free to comment those lines out and they will not show.
location: location,
email: email,
github: github,
linkedin: linkedin,
phone: phone,
personal-site: personal-site,
// Accent color is optional. Feel free to remove the next line if you want your resume to be in black and white
accent-color: "#26428b",
)

Expand Down

0 comments on commit 8576cb8

Please sign in to comment.