@ -166,6 +166,10 @@ function getHomePageRoutes(callback) {
route: 'categories',
name: 'Categories'
},
{
route: 'unread',
name: 'Unread'
route: 'recent',
name: 'Recent'
@ -50,6 +50,8 @@ Controllers.home = function(req, res, next) {
if (route === 'categories' || route === '/') {
Controllers.categories.list(req, res, next);
} else if (route === 'unread') {
Controllers.unread.get(req, res, next);
} else if (route === 'recent') {
Controllers.recent.get(req, res, next);
} else if (route === 'popular') {
@ -59,7 +59,10 @@ unreadController.get = function(req, res, next) {
data.categories = results.watchedCategories.categories;
data.selectedCategory = results.watchedCategories.selectedCategory;
data.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[unread:title]]'}]);
if (req.path.startsWith('/api/unread') || req.path.startsWith('/unread')) {
}
data.title = '[[pages:unread]]';
data.filters = [{
name: '[[unread:all-topics]]',