refactored to use docpad.getCollection