Skip to content

Commit dcfc9f3

Browse files
committed
Final fix for typst
1 parent 02e272a commit dcfc9f3

1 file changed

Lines changed: 18 additions & 9 deletions

File tree

templates/base-cv.typ

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,36 +91,45 @@
9191
// 3. BODY RENDERER
9292
body
9393
}
94-
// Add this at the bottom of templates/base-cv.typ
9594

96-
#let generate_experience(yaml_data) = {
95+
// ==========================================
96+
// EXPERIENCE GENERATION (FIXED)
97+
// ==========================================
9798

98-
for job in yaml_data.experience[
99-
#resume_entry(
99+
#let generate_experience(yaml_data) = {
100+
// Use { } for code blocks, not [ ]
101+
for job in yaml_data.experience {
102+
resume_entry(
100103
job.title,
101104
job.dates,
102105
job.company,
103106
job.location,
107+
// This [ ] is correct - it's content inside the function call
104108
[
105109
#for bullet in job.bullets [
106110
- #bullet
107111
]
108112
]
109113
)
110-
]
114+
}
111115
}
112116

113-
#let generate_education(yaml_data) = {
117+
// ==========================================
118+
// EDUCATION GENERATION (FIXED)
119+
// ==========================================
114120

115-
for edu in yaml_data.education[
116-
#resume_entry(
121+
#let generate_education(yaml_data) = {
122+
// Use { } for code blocks, not [ ]
123+
for edu in yaml_data.education {
124+
resume_entry(
117125
edu.degree,
118126
edu.dates,
119127
edu.university,
120128
edu.location,
129+
// This [ ] is correct - it's content inside the function call
121130
[
122131
- *Modules:* #edu.modules
123132
]
124133
)
125-
]
134+
}
126135
}

0 commit comments

Comments
 (0)