2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Converting aspect -> filters for tag pages

fixes the build

- PR #2238 added an extra reference to aspect which wasn't fixed by #2652, this resolves that
This commit is contained in:
Hannah Wolfe 2014-04-28 19:54:16 +01:00
parent c347d3fd1c
commit bb75a1f96c

View file

@ -109,14 +109,15 @@ frontendControllers = {
}
return getPostPage(options).then(function (page) {
// If page is greater than number of pages we have, redirect to last page
if (pageParam > page.meta.pagination.pages) {
return res.redirect(tagUrl(options.tag, page.meta.pagination.pages));
}
setReqCtx(req, page.posts);
setReqCtx(req, page.aspect.tag);
if (page.meta.filters.tags) {
setReqCtx(req, page.meta.filters.tags[0]);
}
// Render the page of posts
filters.doFilter('prePostsRender', page.posts).then(function (posts) {