Fix infinite loop
Merge pull request #7 from wpsmith/bug/site_layout

Fix infinite loop. Props @wpsmith.