These are the culprits:
If you comment those out, no problems. I can’t tell you why—I’m having a difficult time following the logic.
Not relevant, and it is currently not called, but this is wrong:
https://github.com/CodeYourFuture/curriculum/blob/main/layouts/_default/single.html#L8