Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
blog: Show 0.8.0 even after 0.8.1 ships
Browse files Browse the repository at this point in the history
The 0.(even).0 releases typically have benchmarks and other interesting
stuff, since that's a milestone.
  • Loading branch information
isaacs committed Jun 28, 2012
1 parent 6531f18 commit 37bdd36
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tools/blog/generate.js
Expand Up @@ -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

This comment has been minimized.

Copy link
@mscdex

mscdex Jun 28, 2012

s/event/even/

return true;
}
if (post.version && post.family && post !== releases[post.family][0]) {
return false;
}
}
return true;
});
Expand Down

0 comments on commit 37bdd36

Please sign in to comment.