feat: test one-line
This commit is contained in:
11
lib.typ
11
lib.typ
@@ -57,7 +57,7 @@
|
||||
}
|
||||
|
||||
// Entry for work.
|
||||
#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none) = {
|
||||
#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none, one_line_mode: false) = {
|
||||
let task_list = if tasks != none {
|
||||
let list = []
|
||||
for task in tasks {
|
||||
@@ -69,7 +69,14 @@
|
||||
}
|
||||
cv_entry(
|
||||
left_content: {
|
||||
text(1.1em)[*#role*] + "\n" + text[#emph[#company]]
|
||||
|
||||
if one_line_mode {
|
||||
text(1.1em)[*#role*, #company]
|
||||
} else {
|
||||
text(1.1em)[*#role*]
|
||||
"\n"
|
||||
text[#emph[#company]]
|
||||
}
|
||||
},
|
||||
right_content: {
|
||||
[*#start_date -- #end_date*]
|
||||
|
Reference in New Issue
Block a user