|
@ -71,6 +71,7 @@ class HomeController extends SiteController { |
|
|
res.locals.pagination = this.getPaginationParameters(req, 20); |
|
|
res.locals.pagination = this.getPaginationParameters(req, 20); |
|
|
res.locals.featuredPosts = await postService.getFeaturedPosts(3); |
|
|
res.locals.featuredPosts = await postService.getFeaturedPosts(3); |
|
|
res.locals.posts = await postService.getPosts(res.locals.pagination); |
|
|
res.locals.posts = await postService.getPosts(res.locals.pagination); |
|
|
|
|
|
|
|
|
res.render('index'); |
|
|
res.render('index'); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
return next(error); |
|
|
return next(error); |
|
|