blog: Show 0.8.0 even after 0.8.1 ships
The 0.(even).0 releases typically have benchmarks and other interesting stuff, since that's a milestone.
This commit is contained in:
parent
6531f187d8
commit
37bdd36d70
@ -170,9 +170,18 @@ function buildFeeds(data) {
|
||||
}
|
||||
|
||||
// filter non-latest release notices out of main feeds.
|
||||
// still show the first stable release of the family, since
|
||||
// it usually is an important milestone with benchmarks and stuff.
|
||||
var main = posts.filter(function(post) {
|
||||
if (post.version && post.family && post !== releases[post.family][0]) {
|
||||
return false;
|
||||
if (post.version && post.family) {
|
||||
var ver = semver.parse(post.version)
|
||||
if (+ver[2] % 2 === 0 && +ver[3] === 0) {
|
||||
// 0.x.0, where x is event
|
||||
return true;
|
||||
}
|
||||
if (post.version && post.family && post !== releases[post.family][0]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user