fix categories in courses, small style fixes, landing page module adjustments

This commit is contained in:
Benedikt Rötsch
2017-09-27 18:41:16 +02:00
committed by Benedikt Rötsch
parent 23a0ac4a81
commit 1fb784e0d1
8 changed files with 20 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ exports.initClient = (config = {space: process.env.CF_SPACE, accessToken: proces
exports.getCourses = () => {
// to get all the courses we simply request from Contentful all the entries
// with the content_type `course`
return client.getEntries({content_type: 'course'})
return client.getEntries({content_type: 'course', include: 10})
.then((response) => response.items)
}