Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to set a profile picture in resume #87

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -399,11 +401,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
Loading