Add the ability to set a profile picture in resume
This commit is contained in:
@@ -54,6 +54,7 @@ Below is a basic example for a simple resume:
|
|||||||
"Software Architect"
|
"Software Architect"
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
profile-picture: none,
|
||||||
date: datetime.today().display()
|
date: datetime.today().display()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
36
lib.typ
36
lib.typ
@@ -184,6 +184,7 @@
|
|||||||
/// The original template: https://github.com/posquit0/Awesome-CV
|
/// The original template: https://github.com/posquit0/Awesome-CV
|
||||||
///
|
///
|
||||||
/// - author (content): Structure that takes in all the author's information
|
/// - 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
|
/// - date (string): The date the resume was created
|
||||||
/// - accent-color (color): The accent color of the resume
|
/// - accent-color (color): The accent color of the resume
|
||||||
/// - colored-headers (boolean): Whether the headers should be colored or not
|
/// - colored-headers (boolean): Whether the headers should be colored or not
|
||||||
@@ -192,6 +193,7 @@
|
|||||||
/// -> none
|
/// -> none
|
||||||
#let resume(
|
#let resume(
|
||||||
author: (:),
|
author: (:),
|
||||||
|
profile-picture: image,
|
||||||
date: datetime.today().display("[month repr:long] [day], [year]"),
|
date: datetime.today().display("[month repr:long] [day], [year]"),
|
||||||
accent-color: default-accent-color,
|
accent-color: default-accent-color,
|
||||||
colored-headers: true,
|
colored-headers: true,
|
||||||
@@ -399,11 +401,37 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
name
|
if profile-picture != none {
|
||||||
positions
|
grid(
|
||||||
address
|
columns: (100% - 4cm, 4cm),
|
||||||
contacts
|
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
|
body
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The base item for resume entries.
|
/// The base item for resume entries.
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
"Developer",
|
"Developer",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
profile-picture: none,
|
||||||
date: datetime.today().display(),
|
date: datetime.today().display(),
|
||||||
language: "en",
|
language: "en",
|
||||||
colored-headers: true,
|
colored-headers: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user