Fix loop syntax for dwoo, update logic so one index template will work, detail pages or no