fix generate.sh and regenerate pages