mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-11-04 16:35:08 -05:00
f955919348
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 %}
|