LearnToDiscover / varnish

Template for pkgdown site
Other
1 stars 1 forks source link

Fix the navbar template #9

Closed milanmlft closed 2 months ago

milanmlft commented 2 months ago

This was causing a rather cryptic error when building lessons with sandpaper:

── Validating Fenced Divs ────────────────────────────────────────────────────────────────────────────────────
...
── Initialising site ─────────────────────────────────────────────────────────────────────────────────────────
── Scanning episodes to rebuild ──────────────────────────────────────────────────────────────────────────────
Error in `purrr::map()`:
ℹ In index: 4.
Caused by error in `if (key$key[h] != key$key[i]) ...`:
! argument is of length zero
Run `rlang::last_trace()` to see where the error occurred.

My guess is that the template got updated in the upstream Carpentries repo at some point, which made our custom #aio_pdf div element no longer valid.

This should fix it.

sabaferdous12 commented 2 months ago

@milanmlft Thank you so much for helping to spot the problem and then fixing it..