Hide unused experience types
This commit is contained in:
parent
18df7051e7
commit
0beef3934b
1 changed files with 4 additions and 7 deletions
11
resume.typ
11
resume.typ
|
@ -83,14 +83,11 @@
|
|||
#let by_experience_type(type: (), experience: ()) = {
|
||||
let by_ty = (:)
|
||||
for (id, desc) in type {
|
||||
let matching_exp_items = ()
|
||||
// for item in experience {
|
||||
// [itemtypeid: #item.typeid, id: #id]
|
||||
// if item.typeid == id {
|
||||
// matching_exp_items.push(item)
|
||||
// }
|
||||
// }
|
||||
let matching_exp_items = experience.filter(item => int(item.typeid) == int(id))
|
||||
if matching_exp_items.len() == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
[=== _#desc.at(lang)_]
|
||||
by_client(experience: matching_exp_items)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue