If you want to use cloudflare, you should use a higher version of hugo +.
To use a specific version of Hugo, create the HUGO_VERSION environment variable in your Pages project > Settings > Environment variables. Set the value as the Hugo version you want to specify.
For example, HUGO_VERSION: 0.110.0.
After Cloning do this to download inner repositories completely
git submodule update --init --recursive # needed when you reclone your repo (submodules may not get cloned automatically)