aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/_includes
diff options
context:
space:
mode:
authorPhilip Hofstetter <phofstetter@sensational.ch>2011-08-04 20:59:29 +0200
committerPhilip Hofstetter <phofstetter@sensational.ch>2011-08-04 21:01:24 +0200
commitf95591934822064aad21dfa868ccffce34387bf1 (patch)
treedfa8016b29ef038ba7d1773c6ecdf1a270465451 /.themes/classic/source/_includes
parent140198b87a4c92cc4c86cd3e2380d9c6364c9d63 (diff)
downloadmy_new_personal_website-f95591934822064aad21dfa868ccffce34387bf1.tar.xz
my_new_personal_website-f95591934822064aad21dfa868ccffce34387bf1.zip
add github repositories sidebar plugin
if you specify github_user: in you _config.yml and once you add asides/github.html to your sidebar items, this plugin will fetch the specified users github repositories and order them so the last pushed ones are shown first. Then it'll list them in the side-bar, including a link and the repository description The plugin will only list your own repositories, not forks, though this might need to be configurable later
Diffstat (limited to '.themes/classic/source/_includes')
-rw-r--r--.themes/classic/source/_includes/asides/github.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/.themes/classic/source/_includes/asides/github.html b/.themes/classic/source/_includes/asides/github.html
new file mode 100644
index 00000000..07b37aa4
--- /dev/null
+++ b/.themes/classic/source/_includes/asides/github.html
@@ -0,0 +1,21 @@
+{% if site.github_user %}
+<section>
+ <h1>Github Repos</h1>
+ <ul id="gh_repos">
+ <li class="loading">Status updating...</li>
+ </ul>
+ <script type="text/javascript">
+ $.domReady(function(){
+ if (!window.jXHR){
+ var jxhr = document.createElement('script');
+ jxhr.type = 'text/javascript';
+ jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(jxhr, s);
+ }
+ github.showRepos('{{site.github_user}}', '#gh_repos');
+ });
+ </script>
+ <script src="{{ root_url }}/javascripts/github.js" type="text/javascript"> </script>
+</section>
+{% endif %}