Skip to content

Commit 37bdd36

Browse files
committed
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.
1 parent 6531f18 commit 37bdd36

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tools/blog/generate.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,18 @@ function buildFeeds(data) {
170170
}
171171

172172
// filter non-latest release notices out of main feeds.
173+
// still show the first stable release of the family, since
174+
// it usually is an important milestone with benchmarks and stuff.
173175
var main = posts.filter(function(post) {
174-
if (post.version && post.family && post !== releases[post.family][0]) {
175-
return false;
176+
if (post.version && post.family) {
177+
var ver = semver.parse(post.version)
178+
if (+ver[2] % 2 === 0 && +ver[3] === 0) {
179+
// 0.x.0, where x is event
180+
return true;
181+
}
182+
if (post.version && post.family && post !== releases[post.family][0]) {
183+
return false;
184+
}
176185
}
177186
return true;
178187
});

0 commit comments

Comments
 (0)