mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05: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:
parent
c347d3fd1c
commit
bb75a1f96c
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue