diff options
author | Zhao Lü <zlu@me.com> | 2012-07-19 22:09:48 -0700 |
---|---|---|
committer | Zhao Lü <zlu@me.com> | 2012-07-24 13:25:58 -0700 |
commit | 9d7240e47f8edd732b5f7912d13b95266a3f4098 (patch) | |
tree | 25d9fbea459dd62142512603b4b356b95ff75e2c | |
parent | 0d14d9cd0692fe6cf65e27f49da0247f98a45cdf (diff) | |
download | my_new_personal_website-9d7240e47f8edd732b5f7912d13b95266a3f4098.tar.xz my_new_personal_website-9d7240e47f8edd732b5f7912d13b95266a3f4098.zip |
Updated Github API to V3.
Github API V2 has been removed. The response data format also changed.
-rw-r--r-- | .themes/classic/source/javascripts/github.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.themes/classic/source/javascripts/github.js b/.themes/classic/source/javascripts/github.js index 8b79dad1..9e98b8c2 100644 --- a/.themes/classic/source/javascripts/github.js +++ b/.themes/classic/source/javascripts/github.js @@ -3,7 +3,7 @@ var github = (function(){ var i = 0, fragment = '', t = $(target)[0]; for(i = 0; i < repos.length; i++) { - fragment += '<li><a href="'+repos[i].url+'">'+repos[i].name+'</a><p>'+repos[i].description+'</p></li>'; + fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+(repos[i].description||'')+'</p></li>'; } t.innerHTML = fragment; } |