mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-01 15:55:03 -04:00
c9650dc523
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
22 lines
705 B
HTML
22 lines
705 B
HTML
{% 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 %}
|