From 08af7b4e383976858ca5b7dd3246525c17bcb941 Mon Sep 17 00:00:00 2001 From: Philip Hofstetter Date: Thu, 4 Aug 2011 21:15:50 +0200 Subject: allow limiting the amount of repos to display by setting github_repo_count to someething that's not 0, you can limit the amount of repositories to render --- .themes/classic/source/_includes/asides/github.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.themes/classic/source/_includes') diff --git a/.themes/classic/source/_includes/asides/github.html b/.themes/classic/source/_includes/asides/github.html index 07b37aa4..5e0b0ed2 100644 --- a/.themes/classic/source/_includes/asides/github.html +++ b/.themes/classic/source/_includes/asides/github.html @@ -13,7 +13,12 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(jxhr, s); } - github.showRepos('{{site.github_user}}', '#gh_repos'); + + github.showRepos({ + user: '{{site.github_user}}', + count: {{site.github_repo_count}}, + target: '#gh_repos' + }); }); -- cgit v1.2.1