ci(docs): update Hugo test build

Description

Update the Hugo test build to be on par with https://gitlab.com/gitlab-org/gitlab/-/blob/414c670cd86174886cebd91ab5a164f5cd4f6734/.gitlab/ci/docs.gitlab-ci.yml#L97-147.

Related Issues

With that update in place, we would have caught the error that is now fixed in !2576 (merged).

How has this been tested?

Merge request reports

Loading