Skip to content

Commit

Permalink
Merge pull request #87 from clement-troesch/add-profile-picture-in-re…
Browse files Browse the repository at this point in the history
…sume
  • Loading branch information
DeveloperPaul123 authored Jan 1, 2025
2 parents a98b5e9 + 8c404d9 commit 7eb7122
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Below is a basic example for a simple resume:
"Software Architect"
)
),
profile-picture: none,
date: datetime.today().display()
)
Expand Down
36 changes: 32 additions & 4 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
/// The original template: https://github.com/posquit0/Awesome-CV
///
/// - author (content): Structure that takes in all the author's information
/// - profile-picture (image): The profile picture of the author. This will be cropped to a circle and should be square in nature.
/// - date (string): The date the resume was created
/// - accent-color (color): The accent color of the resume
/// - colored-headers (boolean): Whether the headers should be colored or not
Expand All @@ -192,6 +193,7 @@
/// -> none
#let resume(
author: (:),
profile-picture: image,
date: datetime.today().display("[month repr:long] [day], [year]"),
accent-color: default-accent-color,
colored-headers: true,
Expand Down Expand Up @@ -400,11 +402,37 @@
]
}

name
positions
address
contacts
if profile-picture != none {
grid(
columns: (100% - 4cm, 4cm),
rows: (100pt),
gutter: 10pt,
[
#name
#positions
#address
#contacts
],
align(left + horizon)[
#block(
clip: true,
stroke: 0pt,
radius: 2cm,
width: 4cm,
height: 4cm,
profile-picture,
)
],
)
} else {
name
positions
address
contacts
}

body

}

/// The base item for resume entries.
Expand Down
1 change: 1 addition & 0 deletions template/resume.typ
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"Developer",
),
),
profile-picture: none,
date: datetime.today().display(),
language: "en",
colored-headers: true,
Expand Down

0 comments on commit 7eb7122

Please sign in to comment.