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

Commit

Permalink
blog: Don't filter out non-latest release notes
Browse files Browse the repository at this point in the history
This causes too many people to ask me why it's broken.
  • Loading branch information
isaacs committed Nov 23, 2012
1 parent db008f7 commit fb5c7f0
Show file tree
Hide file tree
Showing 10 changed files with 597 additions and 16 deletions.
18 changes: 2 additions & 16 deletions tools/blog/generate.js
Expand Up @@ -172,22 +172,8 @@ function buildFeeds(data) {
categories[cat] = paginate(categories[cat], cat);
}

// 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) {
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;
});
// show all posts in main feed.
var main = posts;

// add previous/next based on main feed.
main.forEach(function (post, i, posts) {
Expand Down
27 changes: 27 additions & 0 deletions tools/blog/node_modules/glob/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions tools/blog/node_modules/glob/node_modules/graceful-fs/test/open.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb5c7f0

Please sign in to comment.