mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
search newer/older than and better pagination
This commit is contained in:
@@ -260,8 +260,7 @@ categoriesController.get = function(req, res, next) {
|
||||
data.currentPage = page;
|
||||
data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
|
||||
data['rssFeedUrl'] = nconf.get('relative_path') + '/category/' + data.cid + '.rss';
|
||||
|
||||
pagination.create(data.currentPage, data.pageCount, data);
|
||||
data.pagination = pagination.create(data.currentPage, data.pageCount);
|
||||
|
||||
data.pagination.rel.forEach(function(rel) {
|
||||
res.locals.linkTags.push(rel);
|
||||
|
||||
Reference in New Issue
Block a user