mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
26 lines
469 B
JavaScript
26 lines
469 B
JavaScript
![]() |
viewNav.push({
|
||
|
route: 'posts_digest_default',
|
||
|
label: 'digest'
|
||
|
});
|
||
|
|
||
|
viewParameters.digest = function (terms) {
|
||
|
return {
|
||
|
find: {
|
||
|
postedAt: {
|
||
|
$gte: terms.after,
|
||
|
$lt: terms.before
|
||
|
}
|
||
|
},
|
||
|
options: {
|
||
|
sort: {sticky: -1, baseScore: -1, limit: 0}
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
getDigestURL = function(moment){
|
||
|
return Router.routes['posts_digest'].path({
|
||
|
year: moment.year(),
|
||
|
month: moment.month() + 1,
|
||
|
day: moment.date()
|
||
|
});
|
||
|
};
|