mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-01-11 13:48:37 -05:00
make listing/not listing of forks configurable
some people have more or less taken over projects with their forks, so it probably makes sense to still list them among the repositories
This commit is contained in:
parent
727f8515e3
commit
767f65a819
@ -20,6 +20,7 @@
|
||||
github.showRepos({
|
||||
user: '{{site.github_user}}',
|
||||
count: {{site.github_repo_count}},
|
||||
skip_forks: {{site.github_skip_forks}},
|
||||
target: '#gh_repos'
|
||||
});
|
||||
});
|
||||
|
@ -18,8 +18,9 @@ github = (function(){
|
||||
var repos = [];
|
||||
var i;
|
||||
for (i = 0; i < data.repositories.length; i++){
|
||||
if (!data.repositories[i].fork)
|
||||
repos.push(data.repositories[i]);
|
||||
if (options.skip_forks && !data.repositories[i].fork)
|
||||
continue;
|
||||
repos.push(data.repositories[i]);
|
||||
}
|
||||
repos.sort(function(a, b){
|
||||
var a = new Date(a.pushed_at),
|
||||
|
Loading…
Reference in New Issue
Block a user