imathis/octopress — pull request #344 by dzello (2011-12-24 21:09:34+00:00)
Title: Setting "github_repo_count: 0" should cause 0 repositories to show.

Because 0 is falsy in JS the splice isn't executed when the setting equals 0, and instead the default number of repositories is displayed. The fix checks for 0 exactly.

I suppose the whole loop could be avoided for a 0 count, but this seemed like the simplest change that would work without impacting anything else and staying in the spirit of splicing after the fetch & sort step.