Switch from static site file creation to a loop