mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
21 lines
No EOL
429 B
JavaScript
21 lines
No EOL
429 B
JavaScript
Telescope.menuItems.add("viewsMenu", {
|
|
route: 'postsSingleDayDefault',
|
|
label: 'singleday',
|
|
description: 'posts_of_a_single_day'
|
|
});
|
|
|
|
Posts.views.add("singleday", function (terms) {
|
|
return {
|
|
find: {
|
|
postedAt: {
|
|
$gte: terms.after,
|
|
$lt: terms.before
|
|
}
|
|
},
|
|
options: {
|
|
sort: {sticky: -1, score: -1}
|
|
}
|
|
};
|
|
});
|
|
|
|
Telescope.modules.addRoute("top", "views_menu", "postsSingleDay"); |