improve static pages generation script
improve static pages generation script (2)