clean up and optimize `generateTagsPages`
clean up and optimize `generateTagsPages`

JSRocksHQ/harmonic,viniciusdacal/harmonic,mauricionr/harmonic,joaopauloti/harmonic,robsongajunior/harmonic,thotty/harmonic