Skip to content

Commit e7b0237

Browse files
stuxfme-tiny
andcommitted
Make start-date optional in dates-helper and fix typo
Manually merge PR #42 (conflicted with #37's sym.dash.em change). When start-date is empty, only the end-date is shown instead of " — end-date". Co-Authored-By: Metin Yalcinkaya <25687390+me-tiny@users.noreply.github.com>
1 parent af0992c commit e7b0237

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/resume.typ

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,16 @@
132132
]
133133
}
134134

135-
// Cannot just use normal --- ligature becuase ligatures are disabled for good reasons
135+
// Cannot just use normal --- ligature because ligatures are disabled for good reasons
136136
#let dates-helper(
137137
start-date: "",
138138
end-date: "",
139139
) = {
140-
start-date + " " + sym.dash.em + " " + end-date
140+
if start-date == "" {
141+
end-date
142+
} else {
143+
start-date + " " + sym.dash.em + " " + end-date
144+
}
141145
}
142146

143147
// Section components below

0 commit comments

Comments
 (0)