Permalink
Browse files

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.
  • Loading branch information...
1 parent 6531f18 commit 37bdd36d70e86e3a3644bc73349e2f6f18909ea0 @isaacs isaacs committed Jun 28, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 tools/blog/generate.js
View
13 tools/blog/generate.js
@@ -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
@mscdex
mscdex added a line comment Jun 28, 2012

s/event/even/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ return true;
+ }
+ if (post.version && post.family && post !== releases[post.family][0]) {
+ return false;
+ }
}
return true;
});

0 comments on commit 37bdd36

Please sign in to comment.